Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.32 KB

CeDeleteRecord.md

File metadata and controls

55 lines (36 loc) · 1.32 KB

Home

Function name : CeDeleteRecord

Group: Remote Application Programming (RAPI) - Library: rapi


This function deletes a record from a database.


Code examples:

Pocket PC: custom RAPI class for operating with the Object Store Databases

Declaration:

BOOL CeDeleteRecord(
  HANDLE hDatabase,
  CEOID oidRecord
);  

FoxPro declaration:

DECLARE INTEGER CeDeleteRecord IN rapi;
	INTEGER hDatabase,;
	INTEGER oidRecord
  

Parameters:

hDatabase [in] Handle to the database from which the record is to be deleted. The database must be open. Open a database by calling the CeOpenDatabase function.

oidRecord [in] Object identifier of the record to be deleted; this is obtained from CeOpenDatabase.


Return value:

TRUE indicates success.


Comments:

To add new record call CeWriteRecordProps with oidRecord set to zero. To delete a property of a record call CeWriteRecordProps with the CEDB_PROPDELETE flag set.

See also CeOpenDatabase, CeWriteRecordProps functions.