Money Script

Bob Sneidar bobs at twft.com
Wed Aug 10 10:48:40 EDT 2011


Hey Charles that actually works pretty well. I did notice that a negative number would format something like $-5.21. Is that normal? Looks odd to me. 

Bob


On Aug 9, 2011, at 12:08 PM, Charles Szasz wrote:

> I found the following to work just as well for fields without using functions:
> 
> on closeField
> if me <> empty
>   then
>      put me into tNum
>      put format("$%1.2f", tNum) into me
>      end if
> end CloseField
> 
> 
> Charles Szasz
> cszasz at mac.com
> 
> 
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the Use-livecode mailing list