Returns a command from the Commands, EndCommands, Parameters, QueryCommands, and UserInputs collection by ordered position.
Set objItem = Collection.Index(n)
Set objItem = Collection(n)
objItem
An
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
The index is zero-based.