This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

01 instead of 1

Help for those learning Tcl or writing their own scripts.
Post Reply
A
Access
Voice
Posts: 22
Joined: Sun Jun 04, 2006 6:31 am

01 instead of 1

Post by Access »

Ok, im countin a variable with "incr"...

And he shows me: 1, 2, 3, 4....

But i want: 01, 02, 03, 04...


How can i do that?

Thanks...
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Use the format command. Proper format-mask should be something like "%02d".
NML_375
Post Reply