Return the deleted status of the current record.
XSharp.RT (in XSharp.RT.dll) Version: 2.6
Syntax Request Example
uArea AS USUAL
) AS LOGIC
public static bool Deleted(
- Type: Usual
Specifies the work area name or number for a table from which the value must be retrieved.
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, this function operates on the currently selected work area.
It can be made to operate on an unselected work area by specifying it within an aliased expression or by calling the that accepts a workarea parameter (a workarea number or alias ).
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:
1USE customer NEW
2USE sales NEW