Am I correct that there is no way to return the name “set1” from the variable MYDATA below? In other words, if I don’t know the name of that record, I can’t retreive it.
set MYDATA to {set1:{thename:{"default"}, theopen:{"aaa", "bbb", "ccc"}, theclose:{"ddd", "eee", "fff"}}, set2:{thename:{"user name"}, theopen:{"ggg", "hhh", "iii"}, theclose:{"jjj", "kkk", "lll"}}}
I know I shouldn’t get pedantic just before going to bed, but properties of records don’t have indices. The whole point of records is that they’re unordered and that their properties are accessed via labels. That’s why your script has to coerce the record to list “ to get something that is ordered. But there’s no guarantee that the order in the list relates to particular properties in the record. It may often be the case that it does, but it doesn’t have to.