Setting a element of a array equal to a array?

Kevin nnoydb at excite.com
Mon Feb 9 15:36:37 EST 2004


Does the access Array[ key1, key2 ] expand all elements of the array to have the same number of cells or is this dynamic?  I gues the qestion is is the array actually implemented as a list?

K






 --- On Mon 02/09, Trevor DeVore < lists at mangomultimedia.com > wrote:
From: Trevor DeVore [mailto: lists at mangomultimedia.com]
To: use-revolution at lists.runrev.com
Date: Mon, 9 Feb 2004 13:31:35 -0700
Subject: Re: Setting a element of a array equal to a array?

On Feb 9, 2004, at 1:18 PM, "" <nnoydb at excite.com> wrote:<br>><br>> Simple syntax/support question I would like to "put" a array into the <br>> element of another array then access it.  How would this be done?<br>><br>> put myArray into otherArray[ARRAY_KEY]<br>><br>> If so can t be accessed via<br>><br>> put otherArray[ARRAY_KEY][0] into myVariable?<br><br>In Transcript a multi-dimensional array is created like this - <br>myArray["key1", "key2"].  AFAIK you cannot assign an array as the value <br>of another array element.  Someone correct me if I'm wrong.<br><br>What you can do is assign an array to a custom property set.  An <br>example:<br><br>put "stuff" into myArray["Key1", "Key1.2", "Key1.2.1"]<br><br>set the customProperties["MyArray"] of this card to myArray<br><br>The card would now have a new Custom Property named "MyArray" with the <br>key: "Key1,Key1.2,Key1.2.1" and a value of "stuff"<br><br><br>-- <br>Trevor DeVore<br>Blue Mango Multimedia<br>trevor at mangomultimedia.com<br><br>_______________________________________________<br>use-revolution mailing list<br>use-revolution at lists.runrev.com<br>http://lists.runrev.com/mailman/listinfo/use-revolution<br>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!


More information about the use-livecode mailing list