CCeDBDatabase::AddRecord

This member function adds a new record to the database.

Syntax

BOOL AddRecord( CCeDBRecord* pRecord );

At a Glance

Header file: Wcedb.h
Platforms:
Versions: 2.0 and later

Parameters

pRecord
A pointer to the record to add to the database.

Return Values

TRUE if the record was successfully added. FALSE if there was an error. Call ::GetLastError to determine why the operation failed.

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

CCeDBDatabase Overview, CCeDBDatabase Member Functions, Windows CE Database Classes, ::GetLastError