On Mon, Apr 4, 2011 at 2:16 PM, JosepM <jmye...@mac.com> wrote:

> I'm trying to apply a numberFormat to a column but nothing change.
>
> In the database I have 4 decimals but I want to show only 2.
>
> Into the FillData I put:
>
> set the numberFormat to "#.00"

Hi Josep,

Have a look to numberFormat in the dictionary. The numberFormat
formats result of numeric calculations.

So a possible solution is to multiply pData by 1 in the fillinData handler:

on FillInData pData
   set the numberFormat to "#.00"
   set the text of field 1 of me to (pData * 1)
end FillInData


Best regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to