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>pack</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PACK


Syntax:     PACK

Purpose:    To physically remove from the current database file records
            marked for deletion.

Usage:      When you PACK, all records marked for deletion are removed
            from the current database file, the physical space occupied
            by the deleted records is recovered, and all indexes in USE
            in the current work area are REINDEXed.  Note that PACK does
            not create a backup file or use any temporary files.

Library:    CLIPPER.LIB


----------------------------------- Example --------------------------------

   USE Sales
   ? LASTREC()                 && Result: 84

   DELETE RECORD 4
   PACK
   ? LASTREC()                 && Result: 83


See Also: DELETE RECALL REINDEX SET DELETED ZAP DELETED()

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