Skip to main content

DeleteElementOfArray

Type

statement

Summary

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

Syntax

delete <Target> [ <Key> ]

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.

Parameters

NameTypeDescription

Target

An expression which evaluates to an array.

Examples

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

delete tArray["key"] -- tArray is the empty array
Thank you for your feedback!

Was this page helpful?