str2Enum Function

Converts a text string into an enumerated text of the type specified by _type.


enum str2Enum(enum _type, str _text)

Parameter

Description

_type

The type that the string should be converted to.

_text

The text to use as the name of the enumerated text.

An enumerated text of type _type that has the name _text.

The following example returns the enumerated text Current.

static void str2EnumExample(Args _arg)
{
    BankAccountType bat;
    ;
    str2Enum(bat,"Current");
}

Community Additions

ADD
Show: