typeOf Function
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)
Parameters
Parameter |
Description |
---|---|
_object |
The element for which to return the type. |
Return Value
A Types system enumeration value.
Example
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.
}
See also
Announcements: To see known issues and recent fixes, use Issue search in Microsoft Dynamics Lifecycle Services (LCS).