|
<< Click to Display Table of Contents >> Navigation: 3. Script Language > Arrays and Data-Structures > QUE. - Queue > QUE. - Clone Operation > QUE. - Management |
MiniRobotLanguage (MRL)
QUE.ToList
Copy a queue to a new List.
Intention
The QUE.ToList command copies a queue to a list.
This is useful when you need to work with the queue elements in a list format.
The Elements will be copied to a new List.
The original queue-handle will still be valid and all elements will be in the queue as before.
The new LST.-Handle in P2 is just like if you had been using LST.New
Syntax
QUE.ToList|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 list.
Example
'***********************************
' QUE.ToList - Sample
'***********************************
QUE.New|$$QUE
QUE.ToList|$$QUE|$$LST
LST.Count|$$LST|$$RES
DBP.List has $$RES items.
LST.End|$$LST
QUE.End|$$QUE
ENR.
Remarks
-
Limitations:
-
See also:
•