Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete records
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00458758
Message ID:
00459309
Views:
27
>I think you dont have table packed after deleting record, you only have to do is use this command at the begining of your program:
> SET DELETED ON
> ** it will hide all deleted records
> then issue the PACK command when you exit the program to properly remove all deleted records.....

Hello, Ismael.

Watch out! This wouldn't work in a multiuser environment. You have to be exclusive access to the tables to PACK them. Anyway, it wouldn't be a good idea even for a single user application (and actually EVERY windows application can be considered multiuser, as you could -ussually- launch them more than once).

Packing or reindexing at the start or end of the aaplication (something that was fairly common to see in the old Clipper days), it is not desirable as this process could become quite long when as the ammount of data grows.

Also, reindexing or packing should be an option that the user consiously run, so she/he is aware that an important process is running that shouldn't be stopped.

Just wanted to point out what I consider a problematic practice.
Previous
Reply
Map
View

Click here to load this message in the networking platform