Assigns a variable by name with the data.
Assign ( "varname", "data" [, flag] )
| varname | The name of the variable you wish to assign. Cannot be an array element. |
| data | The data you wish to assign to the variable. |
| flag | [optional] controls the way that variables are assigned (add required options together): 0 = (default) Create variable if required 1 = Force creation in local scope 2 = Force creation in global scope 4 = Fail if variable does not already exist |
| Success: | Returns 1. |
| Failure: | Returns 0 if unable to create/assign the variable. |
Local $sString
If Assign("sString", "Hello") Then MsgBox(4096, "Assign", $sString) ; This will print the text "Hello"