QUE. - Operations

<< Click to Display Table of Contents >>

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

QUE. - Operations

QUE.Count

Previous Top Next


MiniRobotLanguage (MRL)

 

QUE.Count

Get the number of items in the queue.

 

 

Intention

 

The QUE.Count command returns the number of elements currently stored in a queue container.

 

 

Syntax

 

 

QUE.Count|P1[|P2]

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the queue.

 

P2 - (Optional, Variable)

       This variable will store the number of elements in the queue. If missing the result is placed on TOS.

 

 

Example

 

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

' QUE.Count - Sample

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

QUE.New|$$QUE

QUE.Push|$$QUE|42

QUE.Push|$$QUE|"Hello"

QUE.Count|$$QUE|$$COUNT

DBP.Number of elements in queue: $$COUNT

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: