Assigns a variable by name with the data.
Assign ( "varname", "data" [, flag = 0] )
If there is a need to use Assign() to create/write to a variable, then in most situations, Eval() should be used to read the variable and IsDeclared() should be used to check that the variable exists.
#include <MsgBoxConstants.au3>
; Assign the variable string sString with data.
Assign ("sString","This is a string which is declared using the function Assign")
; Find the value of the variable string sString and assign to the variable $sEvalString.
Local $sEvalString= Eval ("sString")
; Display the value of $sEvalString. This should be the same value as $sString.
MsgBox ($MB_SYSTEMMODAL,"",$sEvalString)