remove element from array

Eric Chatonet eric.chatonet at
Wed Nov 29 04:15:39 EST 2006

Hi Paolo,

delete variable tArray[MyKey]

on Test
   repeat with i = 1 to 10
     put i into tArray[("Key" & i)]
   end repeat
   -- creates an array with 10 keys: key1 to key10
   delete variable tArray["Key10"]
   -- the array now only haves 9 keys: key1 to key9
end Test

Hope this helps.

Le 29 nov. 06 à 09:38, paolo mazza a écrit :

> How can I delete (or remove) an element from an array so that it  
> does not
> appear anymore in the keys of the array?

Best Regards from Paris,
Eric Chatonet
----------------------    eric.chatonet at

More information about the Use-livecode mailing list