DTWAIN_RangeGetPosFloat

Top  Previous  Next

The DTWAIN_RangeGetPosFloat function gets the position of the value if the range is expanded.

 

DTWAIN_BOOL DTWAIN_RangeGetPosFloat (

DTWAIN_RANGE

Range,

DTWAIN_FLOAT

Value,

LPLONG

lpPosition );

 

Parameters

Range

A valid DTWAIN_RANGE type.

 

Value

Value to determine the position of.

 

lpPosition

Address of where the position will be copied. 


Return Values

TRUE if successful, FALSE otherwise.  If the function returns FALSE, call DTWAIN_GetLastError() to get extended information.

 

Comments

The DTWAIN_RangeGetPosFloat is a specialized version of DTWAIN_RangeGetPos where Value is the DTWAIN_FLOAT data instead of a void pointer.


This function can only be used by ranges that were created using DTWAIN_RANGEFLOAT.


If the value is not found in the range, lpPosition will return the "closest" index to the number.

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

See Also

DTWAIN Range Functions