Deleting Properties and Records

You can delete individual properties from a record using CeWriteRecordProps, or delete all properties in the record using the function CeDeleteRecord.

Listing 4.12 shows how to delete the "propCompanyTel" property from the first database record (which is the current record when the database is opened). The propDelete CEPROPVAL is initialized with the property id of the property to delete. CEDB_PROPDELETE is used for wFlags, and this indicates that the property is to be deleted. Next, the record's object identifier must be obtained, since this is required by CeWriteRecordProps when manipulating an existing record. The easiest way to do this is to call CeSeekDatabase to seek the current record, and this returns the ...

Get Windows® CE 3.0 Application Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.