how to get "0000" + 1 = 0001 ?

Mark Schonewille m.schonewille at economy-x-talk.com
Sat Nov 3 09:05:49 EDT 2012


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é






More information about the use-livecode mailing list