CountElementsOfArray

Typeoperator
DictionaryLCB
LibraryLiveCode Builder
Syntax
the number of elements in <Target>
Associationscom.livecode.array
Summary

Returns the number of elements in Target

Parameters
NameTypeDescription
Target

An expression which evaluates to an array.

Example
variable tArray as Array
put the empty array into tArray
put 1 into tArray["key1"]
put 2 into tArray["key2"]
put 3 into tArray["key3"]

variable tVar as Number
put the number of elements in tArray into tVar -- tVar contains 3
Description

The number of elements in tArray returns the number of key-value pairs stored in the array.

Tagsarrays