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

Glossary Item Box

Description

Returns a session by its index or name.

This is the default property.

Property type

Read-only property

Syntax

Visual Basic
Public Property Item( _
   ByVal index_ As Variant _
) As CQGSession

Parameters

index_
Zero-based index of item in the collection

Return Type

Selected trading session represented as CQGSession Object.

Remarks

If there are several sessions with the same name as the passed one, the first session with such a name is returned.

Example

See the usage of CQGSessions properties in the CQGInstrument.Sessions' example section.

See Also