Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
File Sharing Problem
Message
De
21/10/2001 20:41:03
 
 
À
21/10/2001 20:24:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00571512
Message ID:
00571516
Vues:
20
>Dear All,
> Previously all my projects involve only single computer application. Now I need to convert one of my project to multi-users. All my works are created by form designer and any tables are included in the dataenvironment. I need to set EXCLUSIVE to .F.. However, as I have the commands - PACK & ZAP in some of the controls I run into problems. Therefore I need to replace ZAP by DELETE ALL and clear the data later on by another separate program. Is there any better way to handle this. Look forward to suggestions. Thanks in advance.
>
>Harry



It all depends on the number of deletes you have (many? few?) and if you plan to ever change the back-end database. If you do not plan to have that flexibility, one way that has been used for years is to reuse the DELETED records. You deleted them and use BLANK to get rid of unwanted old info. Later, when you need a new record you first seek for deleted() (have a tag on Deleted()) and if found, RECALL it then reuse, else INSERT INTO.

Advantages: No need to PACK. Multi-user. Less disk fragmentation.
Disadvantages: File bloat. Lose portability/scalability as the Delete/Blank concept does not wortk in other back-ends like SQL Server.

HTH


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform