Collection Methods

Description

Alpha Anywhere provides the following methods for the collection object.

Discussion

The collection object may be referred to as <COLLECTION> in the collection method documentation. To call methods on a collection, replace the <COLLECTION> placeholder with the name of the collection variable in your code. For example:

Example

dim mycollection as U
mycollection.SET("FJ","Fred Jones")

Methods

COLLECTION.DELETE Method

Delete element from collection.

COLLECTION.DUMP Method

Dump collection out to string.

COLLECTION.ENUM_ALL Method

Returns all the keys in a CR-LF separated string.

COLLECTION.EXIST Method

Returns TRUE if element is in the collection.

COLLECTION.FIRST Method

Return the first element of the collection.

COLLECTION.FROM_TABLE Method

Populate a collection from a table.

COLLECTION.GET Method

Get the value for an element from the collection.

COLLECTION.INITIALIZE Method

Populate a collection from a string.

COLLECTION.NEXT Method

Return the next element key of the collection.

COLLECTION.SET Method

Set/Add element to collection.

COLLECTION.SIZE Method

Get number of elements in a collection.

See Also