Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What happens to 'set procedures' when switching forms?
Message
From
27/06/1999 14:06:14
 
 
To
27/06/1999 13:44:01
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00234486
Message ID:
00234535
Views:
23
>I've mentioned this one many times. Don't use a procedure file. Make each procedure or function a seperate .PRG. Don't start each .PRG with PROCEDURE . That's just redundant and causes more performance problems. Sure you will end up with more entries in your project manager, and that might cause some performance problem using VSS, but I think the benefits outweigh the problems. While you are working, there might be a slight delay while VFP searches the directory for the file, but you will have ultimate flexability and when you finally make a .APP or .EXE the negligible performance problem will go away. Caching will also reduce this. Further, there is a performance hit just saying SET PROCEDURE TO. And there are performance hits with recompiling one large procedure file just so you can change a few lines of code.
>
>I've been doing it for years. I had to prove it to some VFP people once, but old habits die hard.


sounds like it makes sense - particularly for new apps, but this is a legacy upgrade and my procedure file has around 45000 lines in it and I haven't even counted how many procedures/functions it contains. I don't intend cutting and pasting that lot into standalone routines in a hurry! Aside from which, performance seems to be one of the few areas where I'm not currently experiencing problems!

Thanks

Harry
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform