SingletonElementOfArray

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

Designates 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"]

variable tVar as String
put tArray["key"] into tVar -- tVar contains "value"
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