TwainCloseSource Method

See Also     Examples     Applies To

Closes the open Data Source, if any.
If the source is enabled, disables it first.

Syntax

object.TwainCloseSource ()

The TwainCloseSource syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.

Returns

Boolean. True if success else False. If there is not an open source, does nothing and returns TRUE.

Remarks

This method should be called only if the TWAIN state is 4 (TWAIN_SOURCE_OPEN) or 5 (TWAIN_SOURCE_ENABLED).
If success, the TWAIN state must be <= 3 (TWAIN_SM_OPEN).
To get the TWAIN state, use the TwainGetState() method.

Category

TWAIN Capability





© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.