Currency display in a field
Posted: Wed Sep 19, 2007 3:08 am
How do you get a field to display its contents in currency format (i.e. with $ sign and commas)?
Thank you for your help.
Peter
Thank you for your help.
Peter
Questions and answers about the LiveCode platform.
https://www.forums.livecode.com/
Code: Select all
on setCurrencyText pAmount
put "$" & format("%1.2f", pAmount) into me
end setCurrencyText
Code: Select all
put 20.4 into fld "someField"
Code: Select all
send "setCurrencyText 20.4" to fld "someField"
Code: Select all
put makeCurrency(20.4) into fld "someField"