Index Method (Engine Object Model)

English Query

English Query

Index Method (Engine Object Model)

Returns a command from the Commands, EndCommands, Parameters, QueryCommands, and UserInputs collection by ordered position.

Applies To

Commands Collection

EndCommands Collection

Parameters Collection

QueryCommands Collection

UserInputs Collection

Syntax

Set objItem = Collection.Index(n)

Set objItem = Collection(n)

Parts

objItem

An object variable that may represent a command object in the Commands, EndCommands, Parameters, QueryCommands, or UserInputs collections of commands; an entity object in the QBEntity collection of entities; a relationship object in the QBRelationship collection of relationships; or a template object in the Templates collection of question templates.

Collection

An object variable that may represent the Commands collection object, EndCommands collection object, Parameters collection object, QueryCommands collection object, UserInputs collection object, QBEntity collection object; QBRelationship collection object; or Templates collection object.

(n)

An integer that represents an item in a collection.

Remarks

The index is zero-based.

See Also

Count Property