Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms Losing Focus
Message
From
23/09/1997 13:31:50
 
 
To
23/09/1997 12:35:42
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00051239
Message ID:
00051256
Views:
39
>I have a very complexe program with multiple forms and formsets. I also have a very complex keyboard routing routine embeded into alot of my textboxes. Every once in a while a customer calls and complains that a screen POPS up ( by clicking on that button) and then goes away. At this point, all hell breaks loose. The main forms object name is trashed and the program freaks. I have traced a number of these to the lost focus event being fired from a text box after another screen has been called. Some I can not find.
>
>Help me if possible, What I really want to do is NOT fire the lost focus if a button has been hit.
>
>Steve Britz

Unfortunately, LostFocus will fire any time you move the focus out. You can either use some property/flag (or NODEFAULT/DODEFAULT construction) to prevent firing of all event code, or better move LostFocus routine into some other event (usually InteractiveChange). Sometimes the solution is to reset the flag in InteractiveChange and use it (if changed) in LostFocus.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform