On Mon, 29 Nov 2010, Leonardo M. Ramé wrote:

Hi, I'm using WebData and I need to format some numbers as Currency
before sending back from my app to the browser. How can I do that?

JSON doesn't know a currency type ? You want to do it as string ?
There is an AfterRowToJSON event; You can take the currency members and convert them to string members:

AObject.strings['myfield']:=FormatCurrency(AObject.Floats['myfield']);

Michael.
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to