----start code------
Dim i as number
Dim Output as String
Dim WholeWord as String
for i = 1 to 8
if mid(ToText({YourTable.YourField}),i,1) = "1" then Output = "one" else
if mid(ToText({YourTable.YourField}),i,1) = "2" then Output = "two" else
if mid(ToText({YourTable.YourField}),i,1) = "3" then Output = "three" else
if mid(ToText({YourTable.YourField}),i,1) = "4" then Output = "four" else
if mid(ToText({YourTable.YourField}),i,1) = "5" then Output = "five" else
if mid(ToText({YourTable.YourField}),i,1) = "6" then Output = "six" else
if mid(ToText({YourTable.YourField}),i,1) = "7" then Output = "seven" else
if mid(ToText({YourTable.YourField}),i,1) = "8" then Output = "eight" else
if mid(ToText({YourTable.YourField}),i,1) = "9" then Output = "nine" else
if mid(ToText({YourTable.YourField}),i,1) = "0" then Output = "zero"
if mid(ToText({YourTable.YourField}),i,1) = "." then Output = "cents"
if mid(ToText({YourTable.YourField}),i,1) = "," then Output = "comma"
WholeWord = WholeWord + " " + Output
Next i
formula = WholeWord
-----end code------
Be sure to set the interpretation for this formula to Basic... Good Luck
Thanks a lot for the help.
I couldnt use towords as I coulndt find any way of showing 50/100 as cents five
If there is some way to do that then I would prefer using towords
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.