TwainGetCapRangeNumeric Method

See Also     Examples     Applies To

Return the three parameters that define a Range for a specific twain capability. Many capabilities allow users to select their current value from a range of regularly spaced values. The capability can specify the minimum and maximum acceptable values and the incremental step size between values. For example, resolution might be supported from 100 to 600 in steps of 50 (100, 150, 200, ..., 550, 600).

Syntax

object.TwainGetCapRangeNumeric (nCap, *nMinValue, *nMaxValue, *nStepValue)

The TwainGetCapRangeNumeric syntax has these parts:

Part Description
object Required. An object expression that evaluates to an object in the Applies To list.
nCap Required. Long A TWAIN Capability constant.
*nMinValue Required. Double. Output Starting value in the range.
*nMaxValue Required. Double. Final value in the range.
*nStepValue Required. Double. Output Increment from nMinValue to nMaxValue.

Returns

Boolean. True if Success else False: use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.

Remarks

Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN)
To get the TWAIN state, use the TwainGetState() method.

Category

TWAIN Capability





© Copyright 2007 GdPicture All rights reserved.
Documentation MAP.