Setting a element of a array equal to a array?

Kevin nnoydb at excite.com
Mon Feb 9 15:43:08 EST 2004




My problem is that a custom property would be a "global" type setting.  I am attempting to create a structure that can be passed from message to message (a type of secession information).  I require a "parameters" array to be a "member" of a "secession" array object any ideas? 


In C++/Perl this is relative sumple but I cannot seem to locate any information about it for Transcript.

Kevin



 --- 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