Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete record
Message
De
09/06/2008 21:01:37
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
09/06/2008 00:22:25
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Divers
Thread ID:
01322406
Message ID:
01322713
Vues:
11
>Hi Hilmar,
>
>Thank for your suggestion.
>
>The reason why I want to switching 2 forms, is that:
>
>Form1 is the main form and Form2 is form for zipping, reindexing and packing, I find that at Form2 I close the databases for zipping, reindexing and packing. I would unable to visit the data in Form1 sucessfully. Releasing forms and do form seems solve that problem. Am I right ??
>
>
>
>Regards,
>
>Ransome

Yes, if you close forms that use that table, you can PACK, etc. But there may also be other users that are using the table. At least, you should seriously consider the possiblity that your application will eventually be a multi-user application. In this case, not only open tables on other forms, on your same computer, can interfere with a PACK, but also open tables on other computers.

Your maintenance form - especially for reindexing and packing - should be opened late at night, when nobody is using the computer. For an emergency reindex, all users should exit the application - or be forced out (I can give you more details if you are interested). PACK, on the other hand, should only be done once a month. Finally, the person doing the maintenance should know what he is doing - so requesting that administrator to close all other forms should not be too much trouble for him. However, you can have a procedure that closes all open forms if you like, and call it up before opening the maintenance form.

HTH,

Hilmar.
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform