Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>deleted()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DELETED()


Syntax:     DELETED()

Purpose:    To determine if the current record is marked for deletion.

Returns:    A logical value.

            DELETED() returns true (.T.) if the current record is marked
            for deletion; otherwise it returns false (.F.).

Usage:      There are two situations where DELETED() may be used
            effectively.  First is querying the deletion status as a
            part of record processing conditions.  Second is displaying
            a record's deleted status as a part of screens and reports.
            To do this, format the return value of DELETED() using IF()
            as follows:

            @ 1, 65 SAY IF(DELETED(), "Inactive", "Active")

Library:    CLIPPER.LIB


----------------------------------- Examples -------------------------------

   USE Sales
   ? RECNO()                     && Result: 1
   ? DELETED()                   && Result: .F.
   DELETE
   ? DELETED()                   && Result: .T.
   RECALL
   ? DELETED()                   && Result: .F.


See Also: DELETE PACK RECALL SET DELETED

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson