Function Deleted() Foundation
Determines whether a record is marked as deleted.
Deleted() --> lDeleted
Deleted() returns the value .T. (true) when the deletion flag is set for the current record in a work area. If no file is open in the work area or the deletion marking is not set, the function returns the value .F. (false).
The database function Deleted() returns whether the current record in a work area is marked as "deleted". When the function is used without the alias operator, the function returns the deletion status of the current record in the current work area. records are only logically deleted by the function DbDelete() and not physically removed from the database file.
The visibility of records marked as "deleted" can be set using the command SET DELETED ON | OFF. records marked as deleted are "undeleted" using the function DbRecall(). The command PACK permanently removes all records marked as deleted from a file.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.