Hi all,

> Am 17.05.2016 um 21:32 schrieb J. Landman Gay <jac...@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
kl...@major-k.de


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to