tree view widget

Klaus major-k klaus at major-k.de
Wed May 18 08:02:10 EDT 2016


Hi all,

> Am 17.05.2016 um 21:32 schrieb J. Landman Gay <jacque at hyperactivesw.com>:
> 
> The array is malformed. The script should be:
> 
> 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 "Tree View" to tHobby
> end mouseUp
> 
> Note the square brackets around each sublevel.

yep, that worked great, thanks!

Question:
Any chance we will be able to TRANSLATE the
„Add new element“ string?

Yes, not all of our users speak english, although the
mothership seems to presume this... 8-)


Best

Klaus
--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list