[<<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 in comparison.

     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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson