CCeDBDatabase::AddRecord

This method adds a new record to the database.

At a Glance

Header file: Wcedb.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 2.0 and later

Syntax

BOOL AddRecord( CCeDBRecord* pRecord );

Parameters

pRecord
Pointer to the record to add to the database.

Return Values

TRUE indicates that the record was successfully added. FALSE indicates that there was an error. To get extended error information, call GetLastError.

Remarks

The position at which the record is entered depends on the sort orders currently in force for the database. If there are no sort orders defined, the record is placed at the end.

See Also

GetLastError