Strange hang

Robert Sneidar slylabs13 at
Mon Jan 14 17:58:41 EST 2013

Whoops! Sorry I didn't get that from the dictionary. I got it from the Livecode Lessons site. 

Deleting an Element From an Array

To delete an element from an array we simply use the delete variable command as demonstrated below:


function GetExampleArrayKeys

    local tArray

    put "a" into tArray["1"]
    put "b" into tArray["2"]
    put "c" into tArray["d"]

    delete variable tArray["2"]

    return (the keys of tArray)

end GetExampleArrayKeys

On Jan 14, 2013, at 2:44 PM, Alex Tweedly wrote:

> Which version does the dictionary show "delete array tArray[x]" ?
> Doesn't show that in 5.5.3 .... it shows
> delete {local | global | variable} {variableName | arrayIndex}
> -- Alex.
> On 14/01/2013 19:39, Robert Sneidar wrote:
>> The dictionary shows delete array tArray[x] as the correct syntax. Not sure if this matters though. Also, if the array is stored in a global variable, you may need to use delete global instead. Again, not sure. Worth testing though.
>> Bob
> _______________________________________________
> use-livecode mailing list
> use-livecode at
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:

More information about the use-livecode mailing list