Reply To: Anyone got a zero fill (left) tcl proc or fragment?

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Anyone got a zero fill (left) tcl proc or fragment? Reply To: Anyone got a zero fill (left) tcl proc or fragment?

#56739
Daniel Lee
Participant

There might be an easier way but here’s what I use:

 set newnum “000000”

 set newnum [append newnum [lindex $xlateInVals 0]]

 set newnum [string range $newnum [expr [string length $newnum] -6] [expr [string length $newnum] – 1]]

 set xlateOutVals [lreplace $xlateOutVals 0 0

    ]

Forum Statistics

Registered Users
5,115
Forums
28
Topics
9,291
Replies
34,426
Topic Tags
286
Empty Topic Tags
10