<< Click to Display Table of Contents >> Navigation: 3. Script Language > Variable Definitions and Operations > Array -Commands > Array -Commands |
MiniRobotLanguage (MRL)
ARR.Clr Array
Clear Array Content - keep Dimension
Intention
The ARR.CLR Array command is designed to clear all elements in a specified array without altering its dimensions.
This is useful for resetting an array to its initial state while keeping its structure intact.
All elements in the specified array are cleared, and the array's dimensions are retained.
•Element Clearing: The command clears all elements in the specified array (P1).
•Dimension Retention: The dimensions of the array are retained, only the values of the elements are cleared.
Syntax
ARR.CLR Array|P1
ARR.CLR|P1
Parameter Explanation
P1 - Array Number: Specifies the array number, which can range from 0 to 32.
Speed in Ticks:
Example
'***********************************
' ARR.-Sample for clearing an array
'***********************************
ARR.CLR Array|5
' Clears all elements in Array 5 while retaining its dimensions
Remarks
Invalid Array Number:
If the specified array number (P1) is outside the range of 0 to 32, the timeout flag may be set, yet no error will be shown.
Limitations:
-
See also:
• VAR. - Variable Set Value/Clear
• VAV. - Variables with Variables
• VBA. - Variable Binary Append
• CAL. - mathematical CALculation
See also:
•SDO.Arr----Small-Introduction-To-A
•Unpack-Array-from-File_Delimiter
•Unpack-Array-from-Var_Delimiiter