Forum Discussion

Eric_Flores_131's avatar
Eric_Flores_131
Icon for Cirrostratus rankCirrostratus
Oct 17, 2013
Solved

iApp table parsing issue

According to the iApp wiki page Working with Tables it says that you can use the array set command with a lindexed value from a table variable - array set columns [lindex $row 0] So experimen...
  • Fred_Slater_856's avatar
    Oct 17, 2013

    The "Working with Tables" example shows a variable $row that contains 1 row of the table. In your example, the variable $test contains the entire table. If you want a single statement that operates on $test, it would be either

    %array set a1 [lindex [lindex $test 0] 0]
    or
    %array set a1 [join [lindex $test 0]]