Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To PACK, or not to PACK that is the question
Message
From
21/01/1997 05:08:42
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
To PACK, or not to PACK that is the question
Miscellaneous
Thread ID:
00017947
Message ID:
00017947
Views:
109
whether 'tis nobler in the application
to suffer the slings and arrows of insufficient disk space...

----------------------------

PACK is not a good idea, we know this. I learned it early on when my application ran out of disk space during a PACK and lost the original and the copy tables - not a happy experience.

SO the normal action is to check for sufficient disk space, then COPY TO a temporary file FOR NOT DELETED(). Then to reindex that file. Finally rename your table and CDX to a backup name (just in case) and rename your copy back tp the original.

Lovely - but has anyone written a class or procdure to do this for a VFP table that is part of a database?

I'm starting out on this escapade and don't want to reinvent the wheel.
Next
Reply
Map
View

Click here to load this message in the networking platform