from
CsScript.Call help
function` $name [`a1] [`a2] [`a3] [`a4] [`a5] [`a6] [`a7] [`a8] [`a9] [`a10] <tip "PARAMETERS">?
Calls a public static function (method or property).
Returns its return value.
name - function name.
Can be full name, like "Class1.Func1", "Namespace1.Class1.Func1", "VbModule.Func1", or just function name.
If function name is "*", calls the first found public static function.
If function name is "", calls the entry function (usually Main; see <open>CsScript.Exec).
To set or get a property, add set_ or get_ prefix to the property name.
a1-a10 - arguments.
Remarks
Use <help>CsScript.AddCode to add code that contains the function.
The class or VB module must be public too.
Automatically converts argument and return types, if possible. For example, int to bool, int to uint, int to string, string to DateTime, DATE to DateTime. To pass by reference, instead <help "CsScript example - create object">create object.
Supports overloads that have different number of parameters. If number of parameters is same, calls the first overload and converts argument types if need.
See also: <help>CsFunc, <help>VbFunc
Errors: <fa "4504362 /5575008 ERR_INIT">ERR_INIT, <fa "4504362 /5575008 >errors">>errors. <help #IDP_ERR>?
Class help: <tip>CsScript help
so on second call
syntax should be
CsScript.Call help
function` $name [`a1] [`a2] [`a3] [`a4] [`a5] [`a6] [`a7] [`a8] [`a9] [`a10] <tip "PARAMETERS">?
Calls a public static function (method or property).
Returns its return value.
name - function name.
Can be full name, like "Class1.Func1", "Namespace1.Class1.Func1", "VbModule.Func1", or just function name.
If function name is "*", calls the first found public static function.
If function name is "", calls the entry function (usually Main; see <open>CsScript.Exec).
To set or get a property, add set_ or get_ prefix to the property name.
a1-a10 - arguments.
Remarks
Use <help>CsScript.AddCode to add code that contains the function.
The class or VB module must be public too.
Automatically converts argument and return types, if possible. For example, int to bool, int to uint, int to string, string to DateTime, DATE to DateTime. To pass by reference, instead <help "CsScript example - create object">create object.
Supports overloads that have different number of parameters. If number of parameters is same, calls the first overload and converts argument types if need.
See also: <help>CsFunc, <help>VbFunc
Errors: <fa "4504362 /5575008 ERR_INIT">ERR_INIT, <fa "4504362 /5575008 >errors">>errors. <help #IDP_ERR>?
Class help: <tip>CsScript help
so on second call
syntax should be