typeOf Function [AX 2012]

Updated: December 10, 2009

Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012

Retrieves the type of an element.


enum typeOf(anytype _object)

Parameter

Description

_object

The element for which to return the type.

A Types system enumeration value.

The following example tests whether the first element in a container, c, is another container that contains a single integer.

if(typeof(conpeek(c, 1)) != Types::Container ||
        conlen(conpeek(c, 1)) != 1 ||
        typeof(conpeek(conpeek(c, 1), 1)) != Types::Integer)
{
    // More code.
}

Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).

Community Additions

ADD
Show: