enum2str Function in AX

This function is used to converts the specified enumerated text to a string.  There is only a parameter in this function :

  1. _enum : The enumerated text to convert.

Example :

static void enum2StrExample(Args _arg)
{
 InventTransType itTypeSU, itTypeSO;
 LedgerTransType ltType;
 ;
 itTypeSU = InventTransType::SummedUp;
 itTypeSO = InventTransType::Sales;
 ltType = LedgerTransType::ExchAdjustment;
 
 info(enum2str(itTypeSU));
 info(enum2str(itTypeSO));
 info(enum2str(ltType));
}

this is the result :

enum2strrun

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a website or blog at WordPress.com

Up ↑

%d bloggers like this: