DataControl.Delete method

From Xojo Documentation

Method

DataControl.Delete()

Supported for all project types and targets.

Deletes the current record from the selection, leaving the record pointer at the same row, if possible.

Notes

When deleting the last record, the record pointer will move to the previous record.

Delete triggers the following events:

  • Validate
  • Reposition
  • Delete

Example

The following example deletes the current record.

Me.Delete