|
SetVariable
int AddVariable ( string name, arg_type value
)
Return
Value
OK if successful;
otherwise FAIL.
Parameters
name
–variable
name.
value –variable
value.
Remarks
Assigns variable a
value.Please note
that variable must be defined before calling SetVariable.
Example
The following
example demonstrates the use of SetVariable .
AddVariable("nResult",
10)
Println(nResult)
SetVariable("nResult",
20)
Println(nResult)
Script output:
10
20
|