From: Mayne, Christopher G (cmayne2_at_illinois.edu)
Date: Fri Apr 18 2014 - 18:42:33 CDT

Would

set test [format %05f 1]

Work for you?

On Apr 18, 2014, at 5:45 PM, "Martin, Erik W" <Erik.Martin_at_stjude.org> wrote:

>
> Can anyone help me understand why something like
>
> Set test [printf %05d 1]
>
> Works on the tk console command line, but when I run the same thing in a .tcl script it get the error:
>
> "invalid command name"
>
> Thanks,
> Erik
>
> ________________________________
> Email Disclaimer: www.stjude.org/emaildisclaimer
> Consultation Disclaimer: www.stjude.org/consultationdisclaimer
>
>