Brain freeze on accessing list elements in the xlate

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Brain freeze on accessing list elements in the xlate

  • Creator
    Topic
  • #54198
    Carl Duff
    Participant

    I am calling a tcl file from the xlate that calls a stored proc.

    If I echo the returned data in the xlate it looks like this:

    xlateInVals is >{{2014-05-07 15:28:00.0000000} 36183870 {Cholecystectomy Open} 07875 H Scott}< Why does the Cloverleaf xlate think this list has only one element and what do I need to do to the data (either in the tcl proc before being returned to the xlate or in the xlate itself) to get the xlate to recognize 4 distinct elements in the list so I can access each one individually? Hope this rambling makes sense and thanks in advance for assistance. -Carl

Viewing 1 reply thread
  • Author
    Replies
    • #80555
      Carl Duff
      Participant

      Got it working (kinda) and for what it’s worth….

      set xlateOutVals [lindex [lindex $xlateInVals 0] 2]

      would access the 3rd element of the list.

      Additional comments/suggestions welcomed.

      -Carl

    • #80556
      Kevin Kinnell
      Participant

      Carl Duff wrote:

      Got it working (kinda) and for what it’s worth….

      set xlateOutVals [lindex [lindex $xlateInVals 0] 2]

      would access the 3rd element of the list.

      Additional comments/suggestions welcomed.

      -Carl

      The xlateInVals list is a list in a list, but the “{ … }” that surrounds it isn’t visible.

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

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,292
Replies
34,432
Topic Tags
286
Empty Topic Tags
10