Forum Discussion
hooleylist
May 04, 2010Cirrostratus
This was the test class I was using on 10.1:
class my_test_class {
{
"item1"
"item10"
"item2"
"item4"
}
}
Using 'class get' seems to retrieve the "names" and null values for each class element. If I set a value for one of the class elements, the class looks like this:
class my_test_class {
{
"item1" { "item1_value" }
"item10"
"item2"
"item4"
}
}
And class get returns:
[class get my_test_class]: {item10 {}} {item2 {}} {item4 {}} {item1 item1_value}
So if you wanted to just get the value for item1 you could use something like this:
[lindex [class get my_test_class "item1"] 1]"
Aaron