|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Arrays and Data-Structures > LST. - List Arrays > List-Management > List-Management |
MiniRobotLanguage (MRL)
LST.Validate
Verify if a Variable contains a valid Handle for a List-Array
Intention
To check if a variable contains a valid handle from a list array, use the LST.Validate command. It will return 0 or 1. A return value of 0 means the handle in variable p1 is not valid and does not belong to the list array. A return value of 1 indicates that the variable contains a valid handle from the list array. ✅🔍
Syntax
LST.Val|P1[|P2]
LST.Validate|P1[|P2]
Parameter Explanation
P1 - (Variable) This Variable will contain the Handle for the List-Array.
P2 - (Variable optional) This variable will receive the result of the Operation. If omitted the result is placed on TOS.
Example
'***********************************
' LST.-Sample
'***********************************
LST.New|$$LST
DBP.New list created with this Handle: $$LST
LST.Val|$$LST|$$RET
DBP.The Validity Check returns: $$RET
ENR.
Remarks
-
Limitations:
There are no limitations on the number of list arrays.
See also:
•