typeId Function

Retrieves the numeric ID of the specified extended data type.


int typeId(str typeName)

Parameter

Description

typeName

The extended data type for which to retrieve the numeric ID.

The numeric ID of the specified extended data type.

This function is a compile-time function, which is a metadata assertion function. Compile-time functions take arguments that represent entities in the Application Object Tree (AOT) and validate these arguments at compile time. They have no effect at run time.

The following example assigns the numeric ID of the LogText extended data type to the MyTypesId variable.

static void typeIdExample(Args _args)
{
    int MyTypeId;
    ;

    MyTypeId = typeId(LogText);
    Global::info(strfmt("%1 is the numeric ID of the LogText extended data type.", MyTypeId));
}
/****Infolog Display.
Message (01:45:00 pm)
117833739 is the numeric ID of the LogText extended data type.
****/

Community Additions

ADD
Show: