Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting and removing at the same time
Message
From
11/08/2003 19:16:27
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
11/08/2003 13:25:29
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00819031
Message ID:
00819204
Views:
13
>Hi -
>Has anyone ever deleted a record in VFP 6, and removed it all at the same time? The same as delete ---> pack , but all in one step
>
>If so please advise how, and does the file have to be opened excl.?
>
>Thanks in advance.
>
>Larry

PACK is quite slow, and not compatible with a multi-user environment.

The usual approach is to only DELETE, use SET DELETED ON to hide deleted records, and postpone the PACK for some moment when nobody is using the database. Since this is not very urgent, you can do it once a month, at midnight or something.

Some people - including me - have experimented with re-using deleted records, but that is quite involved, and not worth the trouble, IMO.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform