NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

HxLink DID NOT INITIALIZE

Item Method

Returns a specific member of a Collection object either by position or by key.

object.Item(index)

Arguments

object
Required. An object expression that evaluates to an object in the Applies To list.
index
Required. An expression that specifies the position of a member of the collection. If a numeric expression, index must be a number from 1 to the value of the collection's Count property. If a string expression, index must correspond to the key argument specified when the member referred to was added to the collection.

Remarks

If the value provided as index doesn’t match any existing member of the collection, an error occurs.

The Item method is the default method for a collection. Therefore, the following lines of code are equivalent:

Print MyCollection(1)
Print MyCollection.Item(1)

See Also

Example

Add Method | Caption Property | Count Property | Count Property | Name Property (VBA Add-In Object Model) | Remove Method

Applies To: Collection Object | Controls Collection | SelBookmarks Collection | Splits Collection