Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to ckick button when focus is in field with invalid
Message
From
05/10/2002 04:05:46
 
 
To
04/10/2002 16:16:57
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00707894
Message ID:
00708039
Views:
10
Hi,

<<
I really want to validate on the text box. Can't enter or tab out unless the value is blank. But if the code is really valid, but just not in the table, I ant them to be able to click and add button to open the add screen. When the add is complete and that screen is closed, then be back in the text box. Entry should now be valid at this point provided they enterred the new employee correctly. I want it to go ahead and process the valid event again when they exit the text box.
<<

As others, I'm not sure this is the best approach. However if you want to do this you could try setting a flag in the command button WHEN and moving the textbox validation code to its LOSTFOCUS. If the flag is set then you know the user is about to click the button and can bypass the validation code.

HTH,
Viv
Previous
Reply
Map
View

Click here to load this message in the networking platform