PType

(Engine-Level Function)

Description: Returns the actual type of parameter at an index.
Returns: Numeric - see comments
Usage: Script Only.
Function Groups: Advanced Module,  Variable
Related to: NParm | Parameter | ResetParm
Format: PType(Object, Index)
Parameters:  
Object
Required. Any object (the object value of a running module instance).
Index
Required. Any numeric expression giving the number of the parameter of interest, starting from 1.
Comments: This function is for experienced users, and is not needed for normal operation. The return value reveals the type of parameter passed to the module from the module call, and is determined by the following table

Value

Meaning

0

Status reference

1

Short reference

2

Long reference

3

Float reference

4

Text reference

5

Object reference

6

Status value (formal parameter type)

7

Short value (formal parameter type)

8

Long value (formal parameter type)

9

Float value (formal parameter type)

10

Text value (formal parameter type)

11

Object value (formal parameter type)

12

Calculated value (not a reference or constant)

13

Short constant without formal parameter

14

Long constant without formal parameter

15

Float constant without formal parameter

16

Text constant without formal parameter