DeleteRecord

Definition:

DeleteRecord(datasource)

 

Description:

Deletes the current record for a Data Source.

 

Platforms:

All

 

Parameters:

datasource - required

Specifies the Data Source to be acted on – click here for the format of this parameter.

 

Returns:

nothing

 

Notes:

  • If there is a 'Next' record available, this becomes the current record.

  • This Method only deletes the record from the local database on the device; it doesn't mark the record to be deleted from the remote data source.

  • You cannot use this Method if the Data Source is locked during an ongoing asynchronous data transfer, unless the record to be deleted is a new record held in memory which hasn't yet been written to the local database using UpdateCurrentRecord. You can use the IsDataSourceLocked Method to check whether the table is locked before making a call to this Method.

  • This Method isn't relevant for use with Custom Views.


See also:

Synchronise

IsDataSourceLocked