Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . The Guide To CA-Clippe - <b>zap</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 ZAP
 Remove all records from the current database file
------------------------------------------------------------------------------
 Syntax

     ZAP

 Description

     ZAP is a database command that permanently removes all records from
     files open in the current work area.  This includes the current database
     file, index files, and associated memo file.  Disk space previously
     occupied by the ZAPped files is released to the operating system.  ZAP
     performs the same operation as DELETE ALL followed by PACK but is almost
     instantaneous.

     To ZAP in a network environment, the current database file must be USEd
     EXCLUSIVEly.  Refer to the Network Programming chapter in the
     Programming and Utilities guide for more information.

 Examples

     .  This example demonstrates a typical ZAP operation in a network
        environment:

        USE Sales EXCLUSIVE NEW
        IF !NETERR()
           SET INDEX TO Sales, Branch, Salesman
           ZAP
           CLOSE Sales
        ELSE
           ? "Zap operation failed"
           BREAK
        ENDIF

 Files:  Library is CLIPPER.LIB.

See Also: DELETE PACK USE

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