Array -Commands

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

Array -Commands

TMP. - Template

Previous Top Next


MiniRobotLanguage (MRL)

 

ARR.Get Dim

Return the highest used Array-Index (Number of Elements-1)

 

 

Intention

 

Return the highest current Index/Dimension of the Array.
The number of Elements is higher by +1 because these Arrays are 0-based.

 

Sample:

 

$$TST=Hallo;wie;geht;es;dir

ARR.Unpack Array From Var Delimiter|0|;|$$TST

ARR.Get Dim|0|$$RET

MBX.Array Dimension: $$RET

ENR.

 

 

clip1030

 

 

 

 

Syntax

 

 

ARR.Get Dim|P1[|P2]

 

 

Parameter Explanation

 

P1 - Array Number: Specifies the array number, which can range from 0 to 32.

P2 - (optinal) Output Variable: Specifies the Variable to return the result. The result is the highest current Index/Dimension of the Array.
The number of Elements is higher by +1 because these Arrays are 0-based.

 

 

 

Example

 

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

' ARR.-Sample

'***********************************
$$TST=Hallo;wie;geht;es;dir

ARR.Unpack Array From Var Delimiter|0|;|$$TST

ARR.Get Dim|0|$$RET

MBX.Array Dimension: $$RET

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

ARR_---3D---Arrays

ARR_---4D---Arrays

SDO.Arr----Sample-Script

SDO.Arr----Small-Introduction-To-A

Append Array

Clm Array

Clr Array

Dim Array

Get Array

Get FP Array

Get INT Array

Pack-Array-to-File

Pack-Array-to-FileDelimiter

Pack-Array-to-Var

Pack-Array-to-Var

Send to AI

Set Array

Set FP Array

Set INT Array

Unpack-Array-from-File

Unpack-Array-from-File_Delimiter

Unpack-Array-from-Var

Unpack-Array-from-Var_Delimiiter