Subscribe

RSS Feed (xml)

Powered By

Skin Design:
Free Blogger Skins

Powered by Blogger


Tuesday, September 6, 2011

enum to integer convertion in dynamics ax x++

In the same way that you can get the label of the enum value, you can also get the integer that it represents by using the enum2int function as shown in the next example:

static void Datatypes_enum2int(Args _args)
{
SalesType salesType;
;
salesType = SalesType::Sales;
info(strfmt("The value of the current sales-type element is %1",
enum2int(salesType)));
}

No comments:

Post a Comment

Archives