<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > Variable Commands |
MiniRobotLanguage (MRL)
VAB. Command
Variable binary
Intention
This command can be used to assign a Value to a Variable.
It will not resolve any variable-names that are given on the value side.
It will not resolve any specialfolders or systemvariables on the value side.
It will just take the right side and put it into the variable name on the left "as it is".
Therefore its binary compatible.
If there is a variable-name on the right side, it will not be resolved with VAB.
VAB.$$NAM=Rainer
VAB.$$TXT=$$NAM
DBP.$$TXT
If you want the value-side to go through a one-time variable-resolution instead, use VAO.
As VAB. does not go through any variable-resolution process, its possibly the fastest way to clear a variable.
' This will clear a variable
VAB.$$TXT=
Syntax
VAB.P1=P2
Parameter Explanation
P1 - Variable-name
P2 - Value that will be assigned to the variable. If P2 is omitted,
the variable will be set to empty.
Example
'**********************************
' VAB.
'**********************************
'DBM.2
'This will clear the variable:
VAB.$$ABC=
' This will assign the variable $$ABC the
' string:
: $$AAA=Hans
: $$AAB=Peter
' The following specialfolder will not
' be resolved using VAB.
VAB.$$ABC=?path\$$AAA$$AAB.txt
MBX.$$ABC
END.
'**********************************
Remarks
Its important to understand that the VAB.-Command will not resolve Special-Folders and Special Variables, while it will resolve any other local or global variable names.
Limitations:
-
See also:
• VBA. - Variable Binary Append
• VAR. - Variable Set Value/Clear
• VAV. - Variables with Variables
• CAL. - mathematical CALculation