This method reads the current record.
Header file: | Wcedb.h |
Platforms: | H/PC 2.0, Palm-size PC, H/PC Pro |
Windows CE versions: | 2.0 and later |
BOOL ReadCurrRecord( CCeDBRecord* pRecord, int nNumFilterProps = 0, CCeDBProp *PropFilterArray = NULL );
CCeDBProp::CCeDBProp(CCeDBProp::enType nType,WORD wIdent, WORD wSortFlags). (Sort flags are ignored.)
If you pass in a null pointer, the entire record will be read.
TRUE indicates that the record was successfully read. FALSE indicates that there was an error. To get extended error information, call GetLastError. This method also returns FALSE indicates that the m_bEOF data member has been set to TRUE during this call.
If you do not pass in an array of properties, this method will read the entire current record.
If the m_bAutoSeekNext data member is set to TRUE, ReadCurrRecord calls the method SeekNext after reading the current record. If SeekNext advances the current position past the end of the database, the m_bEOF data member is set to TRUE.
The memory allocated for the record's properties, and their associated CEBLOBs and strings, is released when the record is destroyed.
CCeDBDatabase::m_bAutoSeekNext, CCeDBDatabase::m_bEOF, CCeDBDatabase::SeekNext, CCeDBDatabase::WriteCurrRecord, CCeDBProp::CCeDBProp, GetLastError