Delete an Array Entry?
Dave Cragg
dave.cragg at lacscentre.co.uk
Thu Mar 1 09:45:49 EST 2007
>
> delete global myArray[17] -- removes 17th element of that array
>
> Correct? Does it remove the 17th element, rather the element with
> the Key that is "17" ?
It deletes the key that is named "17". Try the following to check:
on mouseUp
repeat with k = 1 to 20
put "abc" into tArray[k * 2 + 1]
end repeat
delete variable tArray[17]
put keys(tArray)
end mouseUp
Cheers
Dave
More information about the use-livecode
mailing list