Function

Functie conversie in format moneda: convertAmountFormat


private str 11 convertAmountFormat(Amount _amount, Counter _length )
{
   str stramount = strRep('0', _length);
   stramount = strPoke(stramount, num2str(_amount * 100, 1 ,0, 0, 0), (_length + 1) - strLen(num2str(_amount * 100, 1, 0, 0, 0)));
   return stramount;
}

Lasă un comentariu