Help > Reference > Macros > Collections

Collections

A Collection object represents a list of objects that can be enumerated using a "For Each" statement or directly accessed by index, using the collection's Item property.

Each collection object has the following members:

Count

Read-Only Integer property

Returns the number of items in the collection.

Item

Read-Only Variant(Index) property

Returns the item at specified position in the collection. The parameter Index is the oridinal position of the item in the collection or depending on the collection, it can be a textual key that identifies the item.

Item is the default property of the collection object and you can use either Collection.Item(Index) or Collection(Index).

Perceptive Search Macro Collections