Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cancel a validation
Message
From
30/09/1999 13:07:15
 
 
To
30/09/1999 13:04:32
Tim Yoder
Pin Point Computer Systems, Inc.
Bedford Heights, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00271181
Message ID:
00271182
Views:
23
Make sure that your Cancel button have Cancel = .T.

In you txtBox.Valid(), put this:
IF LastKey() <> 27
   *-- Do the validation here
ENDIF
HTH
>I have a form with a text box that is looking for the user to enter a customer number. The text box is validated with my database to make sure the customer number exists. I also have a cancel button on the form. When the form is instantiated the focus is set to this customer number. If they decide they don't want to enter this screen and press cancel the validation kicks in and say the customer number is invalid (nothing entered). This is good unless they were trying to hit the cancel button. Is there a way for me to know that they were pressing the cancel button and the validation should return .t.?
Previous
Reply
Map
View

Click here to load this message in the networking platform