Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Good reason to never use form methods
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00415216
Message ID:
00416157
Views:
26
The problem is that you were putting the code in the form to begin with. Why not put it in a bizClass instead? Then it is usable in other areas of your app without kick starting the form, and it's DE possibably.

__Stephen




>I'm looking for feedback on this.
>
>If you ever look into a compiled, non encrypted, VFP EXE you will find all of the source code, INCLUDING ALL YOUR COMMENTS, from every method in every form (and I think, vcx) in the exe. It appears that the compiler just brings in the entire form, source and all.
>
>We just reduced the size of our EXE 60K by removing the methods from one complicated form and putting them in PRG files. We made sure nothing else was done as we wanted a very controlled test. The EXE runs just as fast. We are now getting ready to do this to all the forms.
>
>Any thoughts on this would be appreciated. I'm wondering if there is a way to turn this off or is it just "Standard Equipment, no extra charge."
>
>Many thanks in advance,
>John.
>
>ps. We use the old DOS dBrief 3.0 editor, so working on a prg is really easier than in a form anyway. (Once you get used to being able to cut and paste columns, undo 200 keystrokes one at a time with one key press, etc. you never want to go back.)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform