QUE. - Management

<< Click to Display Table of Contents >>

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

QUE. - Management

QUE.Clone

Previous Top Next


MiniRobotLanguage (MRL)

 

QUE.Clone

Create a copy of an existing queue.

 

Intention

 

The QUE.Clone command creates an exact copy of an existing queue.

The new queue is independent of the original, meaning changes to one will not affect the other.

 

This is useful when you need to preserve the original queue while working with a modified version.

The command returns a new Queuehandle in P2 as if you had been calling QUE.NEW.

 

 

Syntax

 

 

QUE.Clone|P1|P2

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the queue to clone.

P2 - (Variable)

 The variable to store the handle of the cloned queue.

 

 

Example

 

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

' QUE.Clone - Sample

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

QUE.New|$$QUE

QUE.Add|$$QUE|Hello

QUE.Add|$$QUE|World

QUE.Clone|$$QUE|$$QUE2

QUE.Count|$$QUE2|$$RES

DBP.Cloned Queue has $$RES items.

QUE.End|$$QUE

QUE.End|$$QUE2

ENR.

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: