QUE. - Operations

<< Click to Display Table of Contents >>

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

QUE. - Operations

QUE.Peek

Previous Top Next


MiniRobotLanguage (MRL)

 

QUE.Peek

Get the first value in the queue without removing it.

 

 

Intention

 

The QUE.Peek command retrieves the first value in a queue container without removing it from the queue.

 

 

Syntax

 

 

QUE.Peek|P1[|P2]

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the queue.

 

P2 - (Variable)

 This variable will store the first value in the queue. If omitted, the value is placed on TOS.

 

 

Example

 

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

' QUE.Peek - Sample

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

QUE.New|$$QUE

QUE.Push|$$QUE|42

QUE.Peek|$$QUE|$$VAL

DBP.First value in queue: $$VAL

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: