tree view widget
Mike Bonner
bonnmike at gmail.com
Tue May 17 15:34:46 EDT 2016
Each separate key should be in brackets, otherwise ['John","animal",i]
becomes 1 key.
so...
put "Dog,Cat,Horse" into temp
repeat with i = 1 to the number of items in temp
put item i of temp into tHobby["John"]["Animal"][i] -- creates an entry 3
keys deep
end repeat
set the arraydata of widget "X" to tHobby
>
> >>
> >> on mouseUp
> >>
> >> put "Dog,Cat,Horse" into temp
> >>
> >> repeat with i = 1 to the number of items of temp
> >>
> >> put item i of temp into tHobby["John","Animal",i]
> >>
> >> end repeat
> >>
> >>
> >> put "Dog,Tortoise" into temp
> >>
> >> repeat with i = 1 to the number of items of temp
> >>
> >> put item i of temp into tHobby["Jane","Animal",i]
> >>
> >> end repeat
> >>
> >>
> >> put « Football Swimming into temp
> >>
> >> repeat with i = 1 to the number of items of temp
> >>
> >> put item i of temp into tHobby["Willy","Sport",i]
> >>
> >> end repeat
> >>
> >> set the arraydata of widget "MyTreeView" to tHobby
> >>
> >> end mouseUp
> >>
More information about the use-livecode
mailing list