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
04/10/2002 15:38:29
 
 
To
04/10/2002 15:22:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00707894
Message ID:
00707906
Views:
14
I think I'm a little bit confused. It sounds like you don't want to validate the text being entered into the employee number textbox. In that case, you shouldn't have any code in the text box's valid. If you only want to validate on save (for example), then create a form valid that you can call from the save procedure and check all the information on the form in that method.

Alan

>I have a situation where the user is entering employee numbers in a text box. If the data is valid, cursor advances to next object. If data is invalid, focus stays in the original text box. I have a button on the screen to allow the user to add new employees to the table. If they have entered and invalid employee number in the field, and then click the add button, the data is still in error and the valid event is processed on the text box. They have to clear the data before clicking the add button.
>
>I temporarily caused the invalid processing on the text box to clear the value, but it would be better to allow the user to see the data they had entered. Add a new user, that user, and then have the data to be valid.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform