Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Load Form 's speed
Message
 
To
24/01/2001 12:10:43
Agnes Cheng
DynamicTech Consultants Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00467978
Message ID:
00468032
Views:
17
Agens,

You can stop guessing and use the coverage/profiler utility in VFP to find out exactly where the time is being spent during yuour form's instantiation.

Open the debugger and choose the coverage logging. Set the output to go to a file of your choice. Now run your form. Now quit your form. Now choose Coverage/Profiler from the Tools menu.

When the coverage/profiler asks you for a file to open point it to the one you had the coverage logging create for you. Once the coverage profiler is open switch it to the profiling mode and you will see that all of the code executed is listed with the number of times each line ran and the time it took to run each line.

Remember that every object that exists must be created during the creation of the form. Each object will run its Init event so any code you have in any Init's is running during form creation. Also the fomr itself runs its Load, Init, activate, and refresh as well as its Gotfocus. The Gotfocus of the first object in the fomr's tab order also runs. If you have any filters set for the tables that drive your grids, these filters must be set up as well, keep in mind that grids and filters don't behave very well with each other in terms of performance..
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform