SelectSourceByIndex()

Description

Selects a Data Source by its index in the Data Source Manager.

Syntax

.SelectSourceByIndex(short index);

Parameters

short index
The index of the targeted Data Source in the Data Source Manager.

Return value

bool

true indicates success. false indicates failure.

When false is returned, check ErrorCode or ErrorString for error information.

Remarks

The index is 0-based.
The index of a specific source may change if there are more/less sources. To make sure, check the name with GetSourceNameItems()

See also

SourceCount
SelectSource()
GetSourceNameItems()