QUE. - Management

<< Click to Display Table of Contents >>

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

QUE. - Management

QUE.Clear

Previous Top Next


MiniRobotLanguage (MRL)

 

QUE.Clear

Delete all data in the Queue.

 

 

Intention

 

The QUE.Clear command removes all elements from a queue container, leaving it empty.

Unlike using QUE.End, The handle will be valid for more operations.

 

 

Syntax

 

 

QUE.Clear|P1

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the queue to clear.

 

 

Example

 

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

' QUE.Clear - Sample

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

QUE.New|$$QUE

QUE.Push|$$QUE|42

QUE.Clear|$$QUE|$$RES

DBP.Queue cleared with result: $$RES

QUE.Count|$$QUE|$$COUNT

DBP.Number of elements after clear: $$COUNT

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: