>function commify kv
> repeat with i = (the length of kv - 1) div 3 down to 1
> put "," before char -3*i of kv
> end repeat
> return kv
>end commify
Just an odd thought for the xTalk-as-English people: how long until
the above is expressed as:
put a comma after every third character of kv, starting at the fourth
character from the right and going left
Note that the following would behave differently, turning 123 into ,123:
put a comma before every third character of kv, starting at the third
character from the right and going left
regards,
Geoff
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.