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.

See also

SourceCount
SelectSource()
GetSourceNameItems()