At 09:43 2002-10-28 +0100, you wrote:
This doesn't insert the command or periods, it just changes the ones that are in the string to match the appropriate locale.Am Mon, 2002-10-28 um 09.03 schrieb Geoffrey:Hi, > Does there any good method to make a string "1000" become a string > "1,000" > or "123456" become "123,456" ? Use StrLocalizeNumber().
To add them, you need to use a hand-written algorithm. I'd start by iterating over the string and determining the number of digits before the decimal point, and the number after. Then, allocate enough space for the new string, create the decimal point and copy the digits that lie after it, and then copy the digits that come before the decimal point backwards, inserting a comma after before every three digits if there are more digits left to copy.
--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com
--
For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
