SelectSource()


Description

Brings up the TWAIN Data Source Manager's Source Selection User Interface (UI) for the user to choose a Data Source.

Syntax

.SelectSource([optionalAsyncSuccessFunc, optionalAsyncFailureFunc]);

Parameters

<OnSuccess function> optional optionalAsyncSuccessFunc: callback function triggered when selecting succeeds.
<OnFailure function> optional optionalAsyncFailureFunc: callback function triggered when selecting fails.

Please refer to the function prototype OnSuccess or OnFailure.

The callback functions are only avaliable for the HTML5 edition.

If the callback function(s) exist, a built-in select source dialog will come up instead of the system default one.

Return value

bool

true indicates success. false indicates failure.

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

See also

SelectSourceByIndex()

Is this page helpful?

Leave a Reply

Your email address will not be published.