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

Continue reading “enum2str Function in AX”

str2Date Function in AX

This function is used to convert the specified string to a date value. There is 2 parameters in this function :

  1. _text : The string to convert to a date value.
  2. _sequence : A three digit integer that describes the positions of the day, month, and year in the string to convert (day = 1, month = 2, year = 3). For example, if we want to use year, month, day, we must write 321.

Continue reading “str2Date Function in AX”

Featured post

Create a website or blog at WordPress.com

Up ↑