tree view widget

Yves COPPE yvescoppe at mac.com
Tue May 17 21:37:49 CEST 2016


Hi,

thanks !!
It works now fine !!!!!


Greetings.


> Le 17 mai 2016 à 21:34, Mike Bonner <bonnmike at gmail.com> a écrit :
> 
> 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
>>>> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode




More information about the use-livecode mailing list