keyInField
Rob Cozens
rcozens at pon.net
Thu Sep 26 09:19:01 EDT 2002
>Now : 2 problems :
>
>1) I'd like the separator of decimal is a comma and not a point.
>is it possible ?
>
>2) I' d like a separator for the thousands (a space for example)
>
>
>so : 123456789 -> 1 234 567,89
>
>can you insert that in your script ?
Salut Yves,
If your request does not fit easily into Jan's algorithm, take a look
at the format handlers in Serendipity Library
<http://www.oenolog.com/ftp/serendipity_downloader.htm>.
After using the Library's Number Edit Mask dialog to set the stack's
numberEditMask (which specifies decimal separator, thousands
separator, currency symbol, & prefix/suffix currency) and having your
stack start using the Library, you would...
put formatNumber(genericNumberString,2[,false]) into field
"Your Field Here"
True in the third argument includes the currency symbol.
--
Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm
"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."
from "The Triple Foole" by John Donne (1572-1631)
More information about the use-livecode
mailing list