ARS. - Array Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > ARS. - Array's > !ARS. - Array Operations >

ARS. - Array Operations

ARS.End All

Previous Top Next


MiniRobotLanguage (MRL)

 

ARS.End All

Frees all allocated arrays and releases their handles.

 

 

Intention

 

The ARS.End All command frees all allocated arrays and releases their handles, effectively deallocating the memory associated with all arrays. This is crucial for managing resources efficiently.

 

Illustration:

📦 Array 1: [1, 2, 3]
📦 Array 2: [4, 5, 6]
📦 Array 3: [7, 8, 9]
🗑️ Freeing all arrays
🔑 All handles released

 

Syntax

 

ARS.End All

 

 

Parameter Explanation

 

None - This command does not take any parameters.

 

Example

 

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

' ARS.End All - Sample 1

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

ARS.New|$$ARR1

ARS.Add|$$ARR1|1

ARS.Add|$$ARR1|2

ARS.Add|$$ARR1|3

ARS.New|$$ARR2

ARS.Add|$$ARR2|4

ARS.Add|$$ARR2|5

ARS.Add|$$ARR2|6

ARS.New|$$ARR3

ARS.Add|$$ARR3|7

ARS.Add|$$ARR3|8

ARS.Add|$$ARR3|9

ARS.End All

DBP.New All arrays freed and handles released

'

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: