Variable Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Variable Definitions and Operations >

Variable Commands

VAF. -  Variable with Filename

Previous Top Next


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:

 

•     VAB. - Variable Binary

•     VAC. - Variable reCt

•     VAN. - Variable Numeric

•     VAO. - Variable Once

•     VAP: - Variable Point

•     VAR. - Variable Set Value/Clear

•     VAS. - Variable with String

•     VAV. - Variables with Variables

•     VBA. - Variable Binary Append

•     CAL. - mathematical CALculation

•     2.1 : - Definiton-Command