Returns a command from the Commands or EndCommands, and UserInputs collection by either name or ordered position. It also returns entities, relationships, and templates from the Question Builder collections: RelatedEntities, RelatedRelationships, and Templates.
Syntax
Set objCommandVar = Commands.Index(n)
Set objEntityVar = Entities.Index(n)
Set objRelationshipVar = Relationships.Index(n)
Set objTemplateVar = Templates.Index(n)
or
Set objCommandVar = Commands(n)
Set objEntityVar = Entities(n)
Set objRelationshipVar = Relationships(n)
Set objTemplateVar = Templates(n)
Part | Description |
---|---|
objCommandVar | A command object in the Commands, EndCommands, or UserInputs collections of commands. |
Commands | The Commands collection object. |
objEntityVar | An entity object in the QBEntity collection of entities. |
Entities | The QBEntity collection object. |
objRelationshipsVar | A relationship object in the QBRelationship collection of relationships. |
Relationships | The QBRelationship collection object. |
objTemplateVar | A template object in the Templates collection of question templates. |
Templates | The Templates collection object. |
(n) | A returned command name or integer representing a command in a collection. |
Applies To
Commands, EndCommands, UserInputs Collection, RelatedEntities Collection, RelatedRelationships Collection, Templates Collection
Remarks
The index is zero-based.
See Also
Count Property