QUE. - Management

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > QUE. - Queue > QUE. - Clone Operation >

QUE. - Management

QUE.ToArray

Previous Top Next


MiniRobotLanguage (MRL)

 

QUE.ToArray

Convert a queue to a new array.

 

Intention

 

The QUE.ToArray command copies a queue to an new array.

This is useful when you need to work with the queue elements in an array format.

The Elements will be copied to a new Array.
The original queue-handle will still be valid and all elements will be in the queue as before.

The new ARS.-Handle in P2 is just like if you had been using ARS.New

 

 

Syntax

 

 

QUE.ToArray|P1[|P2]

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the queue to convert.

P2 - (optional, Variable)

 The variable to store the handle of the new array.

 

 

Example

 

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

' QUE.ToArray - Sample

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

QUE.New|$$QUE

QUE.ToArray|$$QUE|$$ARR

ARR.Count|$$ARR|$$RES

DBP.Array has $$RES items.

ARR.End|$$ARR

QUE.End|$$QUE

ENR.

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: