<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > Variable Commands |
MiniRobotLanguage (MRL)
VAF. Command
VAriable with Filename
Intention
This command can be used to assign a Filename to a variable.
'**********************************
' VAF.
'**********************************
VAF.$$FIL=Hallo
DBP.$$FIL
END.
'**********************************
Important: If the variable does not contain any path, ?path\ is automatically added to the variable content, to make it a valid path.
The VAF.- command makes a special folder, system-variables and variable-resolution. It will add ?path\ if there is no valid path given on the value-side. It will not resolve formulas.
Syntax
VAF.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.
Speed in Ticks:
This command uses typically around 108 Ticks.
Example
'This will clear the variable:
VAF.$$ABC=
' and systemvariables:
VAF.$$ABC=?path\$$AAA.txt
VAF.$$ABC=Hallo
imitations:
-
See also:
• VAR. - Variable Set Value/Clear
• VAV. - Variables with Variables
• VBA. - Variable Binary Append
• CAL. - mathematical CALculation