Collapse (?) An Array?

Dave Cragg dave.cragg at lacscentre.co.uk
Thu Sep 1 08:59:55 CDT 2011


On 1 Sep 2011, at 14:48, Admin wrote:

> So, if A,B,C,D is the array with positions 1,2,3,4 
> 
> and you
> delete array variable 2 
> 
> It will now look like this: 
> 
> A,C,D 
> 
> and the
> array numbers are now: 
> 
> 1,3,4 
> 
> He needs it to be 
> 
> A,C,D 
> 
> and 
> 
> 1,2,3

Looking back, I guess that's what Scott was hoping for. (I'm sure he'll pipe in to confirm.)

Unfortunately (or perhaps not), it doesn't work that way. Livecode arrays are associative arrays, and all keys, whether numbers or strings, behave in the same way.

Dave







More information about the use-livecode mailing list