Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Self running form
Message
 
To
01/11/2006 13:52:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01166250
Message ID:
01166297
Views:
16
>Thanks for the reply, Borislav. I was able to do as you suggested, but then I cannot get the form to release. Release Thisform works in the OK button if it is really clicked or if I simulate it with Keyboard O, but not if I simply do OKButton.Click(). It also won't release if the release command is in the Init of the form. Maybe Release Thisform needs to go somewhere else?
>
>BTW, thanks for the reminder to move code out of the button event. I've been programming under Fox for a long time, started with Clipper in DOS days actually, and a lot of the code is inherited from then. Lately I have been discovering too many places where business code is in the event instead of a method. I appreciate the tip, which these days would be (Ooops) a beginner mistake.

As I post in my previous message:
thisform.OKButton.Click() 
RETURN .f.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform