Platform SDK: Broadcast Architecture |
The FindRecord method searches the recordset for a record that matches the specified type and search criteria. C syntax is shown.
LONG FindRecord( LONG FindType, LPCTSTR Criteria );
Value | Meaning |
---|---|
dbFindFirst | Finds the first record in the recordset that matches the criteria. |
dbFindLast | Finds the last record in the recordset that matches the criteria. |
dbFindNext | Finds the next record that matches the criteria, searching from the current position in the recordset. |
dbFindPrevious | Finds the record directly previous that matches the criteria, searching from the current position in the recordset. |
Channel Number = 27
Returns a LONG that specifies the zero-based index of the found record if successful. If a match is not found, FindRecord moves the record pointer to the first record and returns –1.
Opening a recordset by using the OpenIndexed method and then using the Seek method to find records provides better performance than using the FindRecord method.
Windows NT/2000: Unsupported.
Windows 95/98: Requires Windows 98.
Header: Declared in dbsets.h.
Import Library: Use dbsets.lib or dbsetsst.lib.