enum2Str Function [AX 2012]

Updated: January 18, 2010

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

Converts the specified enumerated text to a character representation.


str enum2Str(enum enum)

Parameter

Description

enum

The enumerated text to convert.

The value of the enumeration as a string.

The following example returns the string "Not included." It is the label for the IncludeNot value of the ListCode enumeration type.

static void enum2StrExample(Args _arg)
{
    ListCode l;
    ;
    l =  ListCode::IncludeNot;
    print enum2Str(l);
    pause;
}

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

Community Additions

ADD
Show: