The ASSIGNED function returns a Boolean TRUE or FALSE result depending on whether or not a variable has an assigned value.
Command Syntax
ASSIGNED (variable)
Syntax Element
ASSIGNED returns TRUE if the variable named has an assigned value before the execution of this statement. If the variable has no assigned value then the function returns FALSE..
Notes
Provision of this function is due to its implementation in older versions of the language. You are advised to program in such a way, to avoid using this statement.
Example
IF ASSIGNED (Var1) THEN
CRT "Var1 has been assigned a value"
END
0 comments:
Post a Comment