Permanently removes records from the table.

Syntax

rv = Send_Message(Ctrl, "OLE.DeleteRecords", Record, Count)

Parameters

ParameterDescription
RecordIndex to the first record to be deleted
CountThe number of records starting at Record to be deleted

Remarks

The DeleteRecords method permanently removes one or more records from the table. The Record parameter is the index to the first record to be deleted. You can set the Record parameter to -1 if you wish records to be deleted from the end. The Count parameter specifies the number of records to be deleted and must be greater than zero to have any effect.

Example

// Delete the first two records and the last record 
rv = Send_Message(Ctrl, "OLE.DeleteRecords", 1, 2) 
rv = Send_Message(Ctrl, "OLE.DeleteRecords", -1, 1)

See Also

DeleteColumnsInsertRecordsINSERT

  • No labels