Item Method

See Also Applies To Example Model

Returns a specified object from the collection.

object expression.Item (Index)

object expression    Required. An object expression that evaluates to an object in the Applies To list.

Index    Required Variant. Either a numerical index indicating a position of the member in the collection or a string indicating the name of the member.

Remarks

The Item method is the default property for the Bots, Cells, Group and Region objects.

Example

The following examples show the different ways of using the Item method to remove a Bot from a Group called "Rabbits". The Bot named "Bugs Bunny" is the 44th Bot in the Rabbits Group.

Rabbits.Item(44).Remove
Rabbits.Item("Bugs Bunny").Remove
Rabbits(44).Remove
Rabbits("Bugs Bunny").Remove