arrays (again)

yves COPPE yvescoppe at skynet.be
Mon Apr 22 05:37:01 EDT 2002


>on mouseUp
>   put "Mark,Ann,Jim,kevin"  into myvarOne
>   put myvarOne into temp
>   repeat with i = 1 to the number of items of temp
>     put item i of temp into myData["Student","name",i]
>   end repeat
>   put "Kate,Antonio,Scott"  into myvarTwo
>   put myvarTwo into temp
>   repeat with i = 1 to the number of items of temp
>     put item i of temp into myData["prof","name",i]
>   end repeat
>   set the customProperties["cData"] of this stack to myData
>   put  the short name of this stack into MYstackName
>   -- put the cData ["student","name","3"] of stack MYstackName into OneElement
>   set the customPropertySet of stack MYstackName to "cData"
>   put customkeys of stack  MYstackName into MyList
>   set the customPropertySet of stack MYstackName to empty -- to set it
>back to default custom properties
>   repeat with j= 1 to number of lines of MyList
>     put the cData [line j of MyList] of stack MYstackName  into line j
>of MyListContent
>   end repeat
>
>   put MyListContent  & cr & "=====" &cr &   mylist
>
>end mouseUp
>
>Best Regards
>Tariel Gogoberidze


Thank you very much. it's just what I needed.

the line :
  set the customPropertySet of stack MYstackName to "cData"

I forgot the above line in my script. Now it's OK.

Again, thank you. May this help everyone who wants to use this 
powerfull and fast way of working with data.
-- 
Greetings.

Yves COPPE

Email : yvescoppe at skynet.be



More information about the use-livecode mailing list