DTWAIN_ArrayFindFloatString

DTWAIN_ArrayFindFloatStringA

DTWAIN_ArrayFindFloatStringW

Top  Previous  Next

The DTWAIN_ArrayFindFloatString function searches for a DTWAIN_FLOAT value in a DTWAIN_ARRAY.

 

LONG DTWAIN_ArrayFindFloat (

DTWAIN_ARRAY

Array,

LPCTSTR

Value,

LPCTSTR

Tolerance );

 

Parameters

Array

DTWAIN_ARRAY to search.

 

Value

value to search for

 

Tolerance

Tolerance level to use when determining equality.

 

Return Values

If the function succeeds, the zero-based position of the element is returned.  


On failure, a -1 is returned if the element cannot be found, or another error has been encountered.  Call DTWAIN_GetLastError() to get extended information.

 

Character specific version

ANSI version:

DTWAIN_ArrayFindFloatStringA

Unicode version:

DTWAIN_ArrayFindFloatStringW

 

Comments

DTWAIN_ArrayFindFloatString works the same way as DTWAIN_ArrayFindFloat, with the difference being that Value and Tolerance are string versions of the DTWAIN_FLOAT value, i.e. "65.7" instead of 65.7.

 

This function is useful if the computer language used to write your application doesn't use or handle DTWAIN_FLOAT variable types correctly, and you want to call DTWAIN functions that use DTWAIN_FLOAT values.  

 

TWAIN State Transitions

None.

 

Prerequisite Function Call(s)

DTWAIN_SysInitialize

 

See Also

Adding, Setting, and Inserting elements in a DTWAIN_ARRAY