QUE. - Management

<< Click to Display Table of Contents >>

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

QUE. - Management

QUE.ToStack

Previous Top Next


MiniRobotLanguage (MRL)

 

QUE.ToStack

Copy a queue to a new stack.

 

Intention

 

The QUE.ToStack command copies a queue to a stack.

This is useful when you need to work with the queue elements in a stack format.

 

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

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

 

Syntax

 

 

QUE.ToStack|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 stack.

 

 

Example

 

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

' QUE.ToStack - Sample

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

QUE.New|$$QUE

QUE.ToStack|$$QUE|$$STK

STK.Count|$$STK|$$RES

DBP.Stack has $$RES items.

STK.End|$$STK

QUE.End|$$QUE

ENR.

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: