enumLiteralStr Function [AX 2012]

Updated: February 2, 2011

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

Indicates whether the specified string is an element of the specified enumeration type.

enumLiteralStr(enum enum, string str)

Parameter

Description

enum

The enumeration type from which to retrieve the specified value.

str

The string to find.

The value of the str parameter if the specified string was found; otherwise, a compilation error.

static void getEnumValueAsString()
{
    str i;
    i = enumLiteralStr(ABCEnum, "valueInABCEnum");
    print i;
    pause;
}

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

Community Additions

ADD
Show: