Error Solving tcl proc

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Error Solving tcl proc

  • Creator
    Topic
  • #53925
    Hina Siddiqui
    Participant

      I am testing one of my xlate and I am receiving the following error

      Tcl callout error

      xlateStrSubstring 0 9:

      errorCode: NONE

      errorInfo:

      bad type “ut”: must be c, d, v, or x

         while executing

      “xpmstore $xlateId $outAdd $outType [string range $inValue $_first $_last]”

         (procedure “xlateStrSubstring” line 15)

         invoked from within

      “xlateStrSubstring 0 9”

      I tried to debug it. All the syntax is fine. It

    Viewing 0 reply threads
    • Author
      Replies
      • #79562
        Levy Lazarre
        Participant

          It appears that you have a problem with the type variable ($outType).

          You don’t show how this variable is initialized, but instead of getting a value of “c”, it is getting truncated to ‘ut’.

          Try to remove the variable and just use a ‘c’ to indicate constant string:

          xpmstore $xlateId $outAdd c [string range $inValue $_first $_last]

          I hope this helps.

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.