Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form Data Environment
Message
From
28/02/1999 13:28:45
 
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00192388
Message ID:
00192455
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform