Collapse (?) An Array?

Bob Sneidar bobs at twft.com
Thu Sep 1 12:46:30 EDT 2011


I can put "put theArray[2]" into the message box and get empty, and I do not even HAVE an array called theArray! :-)

Bob


On Sep 1, 2011, at 5:13 AM, Colin Holgate wrote:

> Try this in the multiline message box:
> 
> put "A" into theArray[1]
> put "B" into theArray[2]
> put "C" into theArray[3]
> delete variable theArray[2]
> put theArray[1] &"*"&theArray[2] &"*"& theArray[3]
> 
> 
> You'll see that although theArray[2] is deleted, its position is still kept. The way the dictionary describes it suggests that the element would have been removed.
> 
> 
> On Sep 1, 2011, at 7:27 AM, Dave Cragg wrote:
> 
>> What are you doing to get 
>> 
>> A
>> 
>> C
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode





More information about the use-livecode mailing list