<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > Variable Commands |
MiniRobotLanguage (MRL)
VAS. Command
VAriable with String
Intention
This command can be used to assign a String/text value to a variable.
Technically it is mostly similar to the normal VAR.-Command, the only difference is that it will try to resolve "Special-Folders" and "System-Variables" after the resolution of normal Variables.
Which may make a difference in very special cases, where the System-Variable is constructed from a normal variable during resolution.
In most cases the function of VAS. is equal to VAR.
But in the readability of the script, the usage of VAS. states that you wish to define String-Variable.
The VAS.-command makes a special folder and system-variables and variable-resolution.
Unlike VAF. it will not add anything to the string to make it a valid path.
Syntax
VAS.P1=[P2]
Parameter Explanation
P1 - Variable-name
P2 - (optional) will be assigned to the variable. If P2 is omitted,
the variable will be set to empty.
Example
'This will clear the variable:
VAS.$$ABC=
' This will assign the variable string $$AAA
' no matter, if $$AAA is a valid Variable or not.
' it would replace all special-folders
' and systemvariables:
VAS.$$ABC=?path\$$AAA.txt
VAS.$$ABC=Hallo
imitations:
See also:
• VAR. - Variable Set Value/Clear
• VAV. - Variables with Variables
• VBA. - Variable Binary Append
• CAL. - mathematical CALculation