DeleteElementOfArray

Typestatement
DictionaryLCB
LibraryLiveCode Builder
Syntax
delete <Target> [ <Key> ]
Associationscom.livecode.array
Summary

Deletes the element with key Key in Target. Index:An expression which evaluates to a string.

Parameters
NameTypeDescription
Target

An expression which evaluates to an array.

Example
variable tArray as Array
put the empty array into tArray
put "value" into tArray["key"]

delete tArray["key"] -- tArray is the empty array
Description

Either locates the element container with the given key for use as the target container of another operation, or evaluates the element with the given key as the source of another operation.

Tagsarrays