Xbasic

DELETED Function

This function is obsolete and no longer available in Alpha Anywhere. <TBL>.FETCH() skips deleted records. For deleted records, see <TBL>.records_deleted()

Syntax

Result_Flag as L = DELETED([C tablename])

Arguments

tablename

Optional. Default = Primary table. The name of the Alpha table.

Description

Returns TRUE if the current record has been marked for deletion.

Discussion

DELETED() returns .T. (TRUE) if the current record in Table_Name is deleted; otherwise it returns .F. (FALSE). If no table is specified, this function applies to the primary table.

The DELETED() function cannot be used in filter expressions.

Example 

This example assumes that record 1 has not been deleted but record 8 has been deleted.

dim tbl as P
tbl = table.open("customer")
tbl.fetch_first()
? deleted()
= .F.
tbl.fetch_goto(8)
? deleted()
= .T.

See Also