Category: Uncategorized

Convert Numbers to Arabic letters Custom Code SSRS with currency [AX2012 or D365]

Public Function ToArabicLetter(ByVal givenNumber As Double, ByVal CurrencyCode As String ) As String Dim FinalOutput, Number, NumberCurrency, Fractions, FractionsCurrency As String Dim Tafkeet = ” فقط لا غير” Dim WholeNumber() As String = Split(givenNumber, “.”) Dim CurrencyCode2 As String =CurrencyCode NumberCurrency = NumberAsCurrency(WholeNumber(0),CurrencyCode2 ) FinalOutput = NumberCurrency If WholeNumber.Length >= 2 Then If WholeNumber(1).Length.Equals(1) Then…

How to convert numbers into Arabic numeric in X++?

static TempStr num2ar(real numerals) { #DEFINE.NumDec(2) str    1        digit; str   30        numeralsTxt; str  250        characters; numeralsTxt= num2str(numerals,0,#NumDec,2,0); characters= “”; while (numeralsTxt) { digit  = subStr(numeralsTxt,1,1); numeralsTxt= strDel(numeralsTxt,1,1); switch(digit) { case ‘0’: characters+= ‘.’; break; case ‘1’: characters+= ‘۱’; break; case ‘2’: characters+= ‘۲’; break; case ‘3’: characters+= ‘۳’; break; case ‘4’: characters+= ‘٤’; break; case…