ARS. - Special Operations

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > Arrays and Data-Structures > ARS. - Array's > !ARS. - Special Operations >

ARS. - Special Operations

ARS.Get Type

Previous Top Next


MiniRobotLanguage (MRL)

 

ARS.Get Type

Get the type of the Array behind the given queue handle

 

Intention

 

The ARS.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 Array, especially when working with multiple Array of different types.

 

 

 

Syntax

 

 

ARS.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

 

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

' ARS.GetType - Sample

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

ARS.New|$$ARS|i

ARS.GetType|$$ARS|$$TYP

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

 

ARS.New|$$ARS|f

ARS.GetType|$$ARS|$$TYP

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

 

ARS.New|$$ARS

ARS.GetType|$$ARS|$$TYP

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

 

ARS.End|$$ARS

ARS.End|$$ARS

ARS.End|$$ARS

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also: