Fun with nummberFormat

Bob Sneidar bobs at twft.com
Thu Feb 16 11:59:57 EST 2012


Hey THAT IS useful! I didn't even know about that one! I will be putting that to good use. 

Bob


On Feb 15, 2012, at 10:18 PM, Ken Ray wrote:

> 
> On Feb 14, 2012, at 5:28 PM, Terry Judd wrote:
> 
>> On 15/02/2012, at 09:07 AM, Bob Sneidar wrote:
>> 
>> Yes I know. I was remarking that you can put virtually anything in the numberFormat and it will pad with zero's.
>> 
>> And all that time I've been 'manually' padding my values. No more!
> 
> I've been using the "format" function instead:
> 
>  put format("%04d","13")
>  -->  0013
> 
>  put format("%08d","121")
>  --> 00000121
> 
> That's what I love about LiveCode… you can do the same thing in multiple ways...
> 
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.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