CQG API 4.0 - Revised
ItemByIndex Property
See Also  Send Feedback
index_
Zero-based index of item in the collection
CQGAccounts Collection : ItemByIndex Property

Glossary Item Box

Description

Returns the corresponding account by its sequential index.

Property type

Read-only property

Syntax

Visual Basic
Public Property ItemByIndex( _
   ByVal index_ As Long _
) As CQGAccount

Parameters

index_
Zero-based index of item in the collection

Return Type

Account object, represented as CQGAccount

Remarks

If no CQGAccount object exists with the specified identifier, depending on the CQGAPIConfig settings; it either returns "Nothing" if no such item is present in the collection, or throws an exception.

Example

See the usage of CQGAccounts' properties in the AccountChanged event's example section.

See Also