Svidos29
22nd December 2021, 19:20
Hi,

i have to get in a string an amount formatted with sprintf$ in a certain way, like this:
r.amti.str = sprintf$("%A005", r.amti, r.ih.ccur)
in r.amti i have my amount, in r.ih.ccur i have the currency, but in r.amti.str it returns me a format that is not the r.ih.ccur one, it seems to take another currency (maybe the default?). How can i get the format from the currency?

thanks in advance,
regards,

bdittmar
22nd December 2021, 22:23
Hi,

i have to get in a string an amount formatted with sprintf$ in a certain way, like this:
r.amti.str = sprintf$("%A005", r.amti, r.ih.ccur)
in r.amti i have my amount, in r.ih.ccur i have the currency, but in r.amti.str it returns me a format that is not the r.ih.ccur one, it seems to take another currency (maybe the default?). How can i get the format from the currency?

thanks in advance,
regards,

Hello,

%A xxx [ ,CUR] Use for amounts.

xxx is the code for an amount format defined in the data dictionary.
CUR indicates the currency code to use. If this is omitted,
the default currency of the company of the user is used.

Regards