DURANGO 122
HOW CAN I MAKE THAT THE FORMULA TOWORD THAT THROW ME FOR EXAMPLE $101 (ONE HUNDRED 00/1OO) REPLACE IT WITH (ONE HUNDRED DOLAR 00/100) IS THIS POSSIBLE?
durango 122:
sorry but I'm desesperate...this formula make a mistake..it tell`s me that is missing a ( before the word else...what´s wrong..
WhilePrintingRecords;
numbervar counter;
Stringvar output:="";
Booleanvar AddDollars:=True;
stringvar MyWord:=towordS({Empleados.Salario});
For counter := 1 to len(MyWord)
do(
if isnumeric(mid(MyWord,counter,1))and addDollars then
addDollars:=False;
output:=(Output + " dollars " + mid(myword,counter,1)
else output:=Output + mid(myword,counter,1);
)
SORRY DURANGO 122 I HAVEN´T SEEN THIS SOLUTION
towords(truncate({table.amt}),0) + " dollars and " +
totext(remainder({table.amt},truncate({table.amt}))*100,0)+"/100 cents"
I PUT IT ON THE REPORT AND WORKS PERFECTLY..THANKS A LOT....THANKS!!!!!!!!!!!!!!!!!!!!!1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.