Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid builder and multiple files
Message
From
07/08/1997 15:16:27
Glenn Shimabukuro
State of HI, Dept of Health, Dd Division
Pearl City, Hawaii, United States
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00043186
Message ID:
00043602
Views:
43
>Hi Glenn,
>
>As usual in FoxPro, there are a number of ways to handle this. If the procedure in question is used by several forms, then open the procedure file in your main program with
>
>SET procedure to MyProg ADDITIVE
>
>If the functions will only be used by ONE form, then cut and paste the code into a custom method. If you haven't done this, it's easy. Open your form in design mode, then look at the FORM menu bar. One choice will be NEW PROPERTY, another will be NEW METHOD. Pick NEW METHOD, give it a name and save. Go to your form, open the method like any other method (Click, INIT, etc.) You'll find it at the bottom of the list of methods/events. Paste in your code, double checking for variable changes, etc.
>
>As for cleanup, if you click on the X at the top right (Win95) or bar at the top left (Win3.1x) the form calls QueryUnload. In that method you can insert a call to YOUR methods:
>
>
**QueryUnload Method
>if thisform.MyCleanup()
>   return .f.
>else
>   return .t.
>endif
>
>where MyCleanup is your method.
>
>HTH
>Barbara
>
>PS I'm answering this so *I* can come to Hawaii to consult also - BHP



Barbara,

Thanks so much for your help! Makes sense and I'm going to incoporate the "new" stuff into my forms. You're welcome to drop by any time!

A big mahalo to you!
Glenn
Previous
Reply
Map
View

Click here to load this message in the networking platform