Collapse (?) An Array?

Bob Sneidar bobs at twft.com
Thu Sep 1 12:47:51 EDT 2011


Try instead:
put the keys of theArray into myKeys
put "2" is in myKeys

See what you get.

Bob


On Sep 1, 2011, at 2:53 AM, Scott Rossi wrote:

> Sorry, I don't know the correct verbiage here...
> 
> If I script this:
> 
> put "A" into theArray[1]
> put "B" into theArray[2]
> put "C" into theArray[3]
> 
> 
> And then script this:
> 
> delete variable theArray[2]
> 
> 
> I essentially get an array with entries that look like this:
> 
> A
> 
> C
> 
> How can I collapse (?) the array after deleting element 2 so that the array
> only has two elements remaining?
> 
> A
> C
> 
> Thanks for suggestions.
> 
> Regards,
> 
> Scott Rossi
> Creative Director
> Tactile Media, UX Design
> 
> 
> 
> _______________________________________________
> 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