Reply To: Removing parenthesis and dashes from phone numbers

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Removing parenthesis and dashes from phone numbers Reply To: Removing parenthesis and dashes from phone numbers

#59696
Ariba Jones
Participant

    Chris,

    I changed my tcl proc to look like you indicated, excluding the extra spaces, of course.  I get a different error now.  It looks like the variable xlateInVals is not recognized.

    This is what my proc looks like now.

    proc phone_nodash {} {

         

               set phoneNo [lindex $xlateInVals]

               set xlateOutVals

      ]

      }

      **Notice that I changed what I originally had as $phoneNum to $xlateInVals as you had in your response.

      This is the error I get when I run my xlate through the Testing Tool.

      errorInfo:

      can’t read “xlateInVals”: no such variable

        while executing

      “lindex $xlateInVals”

        (procedure “phone_nodash” line 5)

        invoked from within

      “phone_nodash”

      Thanks,

      Ariba