Click or drag to resize

Deleted Function

Return the deleted status of the current record.

Namespace:  XSharp.RT
Assembly:  XSharp.RT (in XSharp.RT.dll) Version: 2.08
View Source

Return Value

Type: Boolean
TRUE if the current record is marked for deletion; otherwise, FALSE.  If there is no database file in use in the work area, Deleted() returns FALSE.
Deleted() determines if the current record in the active work area is marked for deletion.  Since each work area with an open database file can have a current record, each work area has its own Deleted() value. By default, Deleted() operates on the currently selected work area.  It will operate on an unselected work area if you specify it as part of an aliased expression (see example below). In applications, Deleted() is generally used to query the deleted status as a part of record processing conditions, or to display the deleted status as a part of screens and reports.
This example uses Deleted() in the current and in an unselected work area:
USE customer NEW
USE sales NEW
QOut(Deleted())                        // Result: FALSE
QOut(Deleted())                        // Result: TRUE
QOut(Customer->Deleted())        // Result: FALSE
See Also