assigning array data

Rob Cozens rcozens at pon.net
Wed Apr 17 12:37:01 EDT 2002


>>This should be a simple one. But, I can't get it. How do I 
>>explicitly assign a value to an "n" dimensional array?
>>
>>for instance: does this work?
>>
>>put ["17","35"] into myarray[1,1]
>>put ["24","32"] into myarray[1,2]
>
>Hi Chip,
>
>No, that doesn't work, because RunRev's array notation is limited to 
>one dimension.

But you could create a "quasi array" using keys:

   put someValue into myArray["1,1"]
   get myArray["1,2"]
-- 

Rob Cozens
CCW, Serendipity Software Company
http://www.oenolog.com/who.htm

"And I, which was two fooles, do so grow three;
Who are a little wise, the best fooles bee."

from "The Triple Foole" by John Donne (1572-1631)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20020417/372b6c31/attachment.html>


More information about the use-livecode mailing list