Re: Stripping leading numbers…

#59314
Anonymous
Participant

    If that is the case, then simply add a format command to the beginning to hold it at 5 digits:

    set var [format “%05d” [string trimleft $a 0]]

    That should work for all cases….

    Tom