Posts

Showing posts from May, 2025

Arabic Class in d365 fo x++

 class HA_NumHelper {     public Description numToTxt_En(real _amount, str _currency1)     {         real decimals, WordReal;         int intNum;         str 250 word, decWord, wholeWord;         int repPos, repPos1, repPoswhole;         word = Global::numeralsToTxt_EN(_amount);         repPos = strscan(word, ' and', 1, strlen(word));         intNum = _amount;         decimals = _amount - intNum;         WordReal = _amount - decimals;         if (decimals == 0.00)         {             wholeWord = num2str(WordReal,0,0,0,0);             wholeWord = Global::numeralsToTxt_EN(str2num(wholeWord));             wholeWord = strdel(wholeWord, 1, 4);     ...