Array -Commands

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Variable Definitions and Operations > Array -Commands >

Array -Commands

ARR.Clr Array

Previous Top Next


MiniRobotLanguage (MRL)

 

ARR.Clr Array

Clear Array Content - keep Dimension

 

clip0708

 

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:

 

clip0784

 

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:

 

    VAB. - Variable Binary

    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

    VBA. - Variable Binary Append

    CAL. - mathematical CALculation

    2.1 : - Definiton-Command

 

 

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