enum2Str Function

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;
}

Community Additions

ADD
Show: