The folowing works:
    db eval ${getTeasToDrinkStr} {
        puts [format "%-30s %-10s %2s %d" ${Tea} ${Last Used} ${Location}
${Randomiser}]
    }
​
But I want to reuse what I get, so I tried the following:
​    set teaChoices [db eval ${getTeasToDrinkStr}]
    foreach tea [array names teaChoices] {
        puts ${teaChoices}(${tea})
    }

But that does not work. teaChoices is filled, but not as an array. When
using:
    puts ${teaChoices}
    puts [array size teaChoices]

I see in the first line what I expect in teaChoices, but the size is zero.
So teaChoices is a string instead of an array. How do I get it filled as an
array?

-- 
Cecil Westerhof
_______________________________________________
sqlite-users mailing list
sqlite-users@mailinglists.sqlite.org
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to