Force instant deletion a record, regardless of its DataRecordStatus. RealDelete removes a record from the resultset.


If you want the delete operation to result in a DELETE statement being executed on the database, use Resultset.Delete() instead.


Resultset.RealDelete() without parameter will delete the currently selected record. An exception will be thrown if no current record is selected.


Resultset.RealDelete(int index) will delete the record at the index position.


Resultset.RealDelete(TRecord) will delete the specified record.


This method is inherited from the RecordsetData class.


public void RealDelete()

public void RealDelete(int index)

public void RealDelete(TRecord record)


Examples

Delete the currently selected record:


customers.RealDelete();


Delete the first record in the resultset:


if (customers.RecordCount > 0)

   customers.RealDelete(0);


Look up a record and instantly delete it:


customers.RealDelete(record);


Remarks

The DataRecordStatus be retrieved with the Record.RecordStatus() method.