QUE. - Management

<< Click to Display Table of Contents >>

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

QUE. - Management

QUE.Get Type

Previous Top Next


MiniRobotLanguage (MRL)

 

QUE.Get Type

Get the type of the queue behind the given queue handle

 

Intention

 

The QUE.GetType command retrieves the data type of the queue associated with the provided handle.

The possible return values are:

 

1 - String

2 - Integer

3 - Floating-Point

0 - Error or unknown

 

This command is useful for verifying the data type of a queue, especially when working with multiple queues of different types.

 

 

 

Syntax

 

 

QUE.GetType|P1[|P2]

 

 

Parameter Explanation

 

P1 - (Variable)

 The handle of the queue whose type is to be determined.

 

P2 - (optional,Variable)

 This variable will store the type of the queue. Possible values:

 1 - String

 2 - Integer

 3 - Extended Floating-Point

 0 - Error or unknown

 

 

 

Example

 

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

' QUE.GetType - Sample

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

QUE.New|$$QUE|i

QUE.GetType|$$QUE|$$TYP

DBP.Type of $$QUE: $$TYP (Expected: 1 - Integer)

 

QUE.New|$$QUE|f

QUE.GetType|$$QUE|$$TYP

DBP.Type of $$QUE: $$TYP (Expected: 2 - Floating-Point)

 

QUE.New|$$QUE

QUE.GetType|$$QUE|$$TYP

DBP.Type of $$QUE: $$TYP (Expected: 3 - String)

 

QUE.End|$$QUE

QUE.End|$$QUE

QUE.End|$$QUE

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: