|
<< Click to Display Table of Contents >> Navigation: »No topics above this level« Array -Commands |
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.

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:
•SDO.Arr----Small-Introduction-To-A
•Unpack-Array-from-File_Delimiter
•Unpack-Array-from-Var_Delimiiter