Advantage Client Engine
Seeks for the last value in an index.
UNSIGNED32 |
AdsSeekLast (ADSHANDLE hIndex, UNSIGNED8 *pucKey, UNSIGNED16 usKeyLen, UNSIGNED16 usDataType, UNSIGNED16 *pbFound) |
hIndex (I) |
Handle of index order. |
pucKey (I) |
Search key (not necessarily a null terminated string). |
usKeyLen (I) |
Length of search key. |
usDataType (I) |
Indicates type of data given in pucKey. ADS_RAWKEY indicates that the key is given exactly as needed for seek. No conversion is performed. ADS_STRINGKEY indicates the data is in a character string (numeric date, and ANSI/OEM conversions performed as necessary. ADS_DOUBLEKEY indicates that the data is a pointer to an 8-byte floating-point value. |
pbFound (O) |
Return True if record found. |
AdsSeekLast will perform a seek for the last key in the indicated index order that matches the passed in search key. If the key is not in the index, the function will position the table at EOF and set the found flag to False. A zero length search key is defined to match all index keys and will perform an AdsGotoBottom in the index order indicated by hIndex.