Deleting an Array Entry

Charles Hartman charles.hartman at conncoll.edu
Wed Oct 26 10:01:35 EDT 2005


On Oct 26, 2005, at 9:43 AM, David Burgun wrote:

> How do I delete an item from an array?
>
> Given that I have:
>
> "Key1","Data1"
> "Key2","Data2"
> "Key3","Data3"
>
> in myArray, how do I delete "Key2", to give:
>
> "Key1","Data1"
> "Key2","Data2"
> "Key3","Data3"

That result, at least, is easy. ;)

Is it not good enough to delete the value associated with "Key2"? I  
think (I could certainly, easily, probably, be wrong) the only way to  
eliminate the key itself would be to make a new array and copy the  
other key/value pairs to it . . .

Charles Hartman





More information about the use-livecode mailing list