Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is the Pack command really dangerous?
Message
From
12/12/2000 12:54:16
 
 
To
11/12/2000 23:00:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00451943
Message ID:
00452345
Views:
34
>>I've read warnings about using the PACK command to delete records.
>
>I have too, never heard about them actually happening though.
One easy way to avoid problems is to:
SELECT * FROM sometable WHERE !DELETED() INTO somecursor NOFILTER
SELECT sometable
PACK
*** If the PACK was successful, release the cursor.
*** Otherwise either delete the table and copy the
*** cursor to it or ZAP the table and append into
*** it from the cursor.
Previous
Reply
Map
View

Click here to load this message in the networking platform