Skip to Content
0
Dec 14, 2018 at 12:48 PM

How to change currency type according to currency

154 Views

local numbervar x := {Invoice_Detail.After_Invoice_Discount_Total};
local numbervar ipart;
local numberVar decpart;
ipart := int(x);
decpart := x - ipart;
Propercase(Replace(towords(ipart)," and xx / 100","")) & " Dollar" &
if decpart = 0 then "" else " and " & Propercase(Replace(towords(decpart*100)," and xx / 100","")) & " Cent Only";

This is 100 percent correct answer. but problem is if currency type change in my application dollar to Euro how to assign variable in crystal report formula work shop. if currency type change according to my application.