Dynamsoft Home|Product Home

SelectSourceByIndex Method

Description

Selects the index-the source in SourceNameItems property as the current source.

Syntax

Boolean ObjectName. SelectSourceByIndex(Long index)

Parameters

Long index. It is the index of SourceNameItems property.

Return value

Boolean.

TRUE indicates success. FALSE indicates failure.

When an error occurs and IfThrowException property is TRUE, an exception will be thrown.

When FALSE is returned or an exception is thrown, check ErrorCode property and ErrorString property for error information.

Remarks

The index is 0-based.

See also

SourceCount propeprty, SelectSource(), SourceNameItems property

Samples

Select necessary device without device selection dialog.