TwainGetLastResultCode Method

See Also     Examples     Applies To

Returns the last result code from the last message sent to TWAIN.

Syntax

object.TwainGetLastResultCode ()

The TwainGetLastResultCode syntax has these parts:

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

Returns

Long. TwainResultCode Value. Can be:
TWRC_SUCCESS = 0 -> Operation was successful.
TWRC_FAILURE = 1 -> Operation failed - get the Condition Code for more information.
TWRC_CHECKSTATUS = 2 -> Partially successful operation; request further information.
TWRC_CANCEL = 3 -> Abort transfer or the Cancel button was pressed.
TWRC_DSEVENT = 4 -> Event or Windows message belongs to this Source.
TWRC_NOTDSEVENT = 5 -> Event or Windows message does not belong to this source
TWRC_XFERDONE = 6 -> All data has been transfered
TWRC_ENDOFLIST = 7 -> No more sources found after MSG_GETNEXT
TWRC_INFONOTSUPPORTED = 8 -> The type of information requested is not supported by the data source
TWRC_DATANOTAVAILABLE = 9 -> Data for the requested information is not available

Remarks

If the result is not TWRC_SUCCESS, you can use the TwainGetLastConditionCode() function to check the reason on this result.

Category

TWAIN Functions





© Copyright 2008 GdPicture All rights reserved.
Documentation MAP.