Variable Commands

<< Click to Display Table of Contents >>

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

Variable Commands

VAC. -  VAriable reCtangular

Previous Top Next


MiniRobotLanguage (MRL)

 

VAC. Command

Variable rectangular

 

 

Intention

 

This command can be used to assign Rectangular Coordinates to a Variable.

It is possible to use calculations if they are enclosed in brackets.

 

Variables of type RECT are currently not used in the engine, but may be used in future versions. If you use a RECT variable, the variable will actually most often just be converted into a text-variable. You can assign an zero RECT by just leaving the data-part empty:

 

VAC.$$REC=

DBP.$$REC

END.

' Will assign 0,0,0,0 as RECT to $$REC

 

 

 

 

Syntax

 

VAC.P1=P2,P3,P4,P5

 

 

 

Parameter Explanation

 

Rectangular Coordinates (Rect) are defined as (P2 to P5):

 

P1   - Variable-name

 

P2   - Value: left X coordinate

 

P3   - Value: top Y coordinate

 

P4   - Value: right X coordinate

 

P5   - Value: bottom Y coordinate

 

All coordinates ( P2 - P5) can contain variables, system-variables and  formulas in (..)

 

 

 

 

Example

 

'**********************************

' VAC.

'**********************************

VAR.§§IVA=1

VAP.$$MYP=(100+§§IVA*2),(-13+(2*§§IVA))

VAC.§§KOR=(100+§§IVA*2),(-13+(2*§§IVA)),$$MYP

DBP.§§KOR

END.

'**********************************

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    VAB. - Variable Binary

    VBA. - Variable Binary Append

    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

    CAL. - mathematical CALculation

    2.1 : - Definiton-Command