# Funktionsreferenz

Assign

Assigns a variable by name with the data.

Assign ( "varname", "data" [, flag] )

Parameter

varname | The name of the variable you wish to assign.
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

Bemerkungen

Keine.

Siehe auch

Eval, IsDeclared

Beispiel

Global $variable
If Assign("variable", "Hello") Then MsgBox(4096, "", $variable) ; Will print "Hello"