DeleteItem method

Applies To
TQDB, TQDBItem, TQDBView

Declaration
procedure DeleteItem;

Description
The DeleteItem method deletes the current item irreversibly. ItemIndex shifts toward the beginning of the file. The QDB file on disk does not shrink until the Pack method has been used.

When successful DeleteItem generates an OnDeleted event.

If the FileName property is not set (i.e., Ready is false) the DeleteItem method raises an EQDBNoFile exception.

In TQDB
DeleteItem is exactly equivalent to Delete which should be used instead.

In TQDBItem & TQDBView
Delete behaves differently in TQDBItem and TQDBView but DeleteItem does not.