how to get "0000" + 1 = 0001 ?

André Bisseret andre.bisseret at wanadoo.fr
Sat Nov 3 10:04:16 EDT 2012


Works well!
I was keeping the [ and ] found in the dictionary!!!

Thanks a lot Mark

André

Le 3 nov. 2012 à 14:05, Mark Schonewille a écrit :

> Hi André,
> 
> Try the format function:
> 
> put format("%04s",1+1)
> 
> --
> 
> Economy-x-Talk
> Consultancy and Software Engineering
> http://economy-x-talk.com
> 
> Download Color Converter at http://www.color-converter.com
> 
> Op 3-nov-2012, om 13:51 heeft André Bisseret het volgende geschreven:
> 
>> Bonjour,
>> 
>> When I add 1 to 0000, I am getting 1
>> How to get 0001 instead
>> 
>> I read the dictionary
>> at "numberFormat" or at "format" (function)
>> 
>> but I am unable to get the right syntax :-((
>> 
>> Thank a lot for any help
>> 
>> Best regards from Grenoble
>> 
>> André
> 
> 
> 
> _______________________________________________
> 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