Dynamic Web TWAIN  - TWAIN ActiveX/Plug-in, Scanner COM Control
TWAIN ActiveX/Plug-in HTTP Control/SDK

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.













TWAIN ActiveX | TWAIN Plug-in | TWAIN Control | TWAIN SDK | Scanner COM
Software Configuration Management | Version Control | Source Control
Copyright © 2011 Dynamsoft Corporation. All Rights Reserved.