Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Data Environment
Message
De
28/02/1999 13:28:45
 
 
À
28/02/1999 13:17:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00192388
Message ID:
00192455
Vues:
24
Ed,

I haven't tried the code you posted, but your explanation makes sense to me. Would you then still use the DE in the forms? What about hard-coded paths that seem to be stored in the DE?

Bonnie

>Bonnie, the reason that opening the tables in the main improves the performance of the forms is that VFP can reduce or eliminate the most costly (in terms of time) part of the USE statement; searching the directory for the appropriate file entries and performing the low-level file open that creates the reference used by VFP to 'talk' to the file. Once a file is open, a handle (a reference) for the file exists, and VFP can duplicate that reference rather than go through the whole process of redoing the low-level open again. You can demonstrate this to yourself by comparing the times for the two code snippets below:
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform