Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Stripping the first four digits of a nine-digit number › Re: Stripping leading numbers…
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