Reply To: Stripping the first four digits of a nine-digit number

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Stripping the first four digits of a nine-digit number Reply To: Stripping the first four digits of a nine-digit number

#59309
Robert Kersemakers
Participant

    Hi Ariba,

    Try this tcl-code where you copy FT1-7:

    Code:

    lassign $xlateInVals number;
    set newnumber [string range $number end-4 end];
    set xlateOutVals [list $newnumber];

    This will always take the last 5 digits of the number and further assumes that there are no leading/trailings spaces.

    Hope this helps.

    Zuyderland Medisch Centrum; Heerlen/Sittard; The Netherlands