Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field level VALID is not executed
Message
 
 
To
24/06/1999 01:01:36
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00232975
Message ID:
00233516
Views:
26
>>>I have a screen with 1 single field which accepts numeric data.  When ESC key is pressed, valid clause of the field is not executed. Why ?
>>
>>This may be canceling the input or halting your program. Try stepping through your program to see what actually happens when pressing ESC. Why would your users press ESC?
>
>
>On pressing ESC, the READ is terminated, the window is released and cleanup code is executed. There are no ON KEY LABEL assignments.
>
>ESC key is used to exit from the screen.

Put a SET STEP ON in your code to find out what is executed after you press "ESC". I assume you have SET ESCAPE OFF.

I think the ESC is causing the textbox valid method not to be fired. As a test put a "Close" button on the form with "thisform.release" in the click event and see if your textbox valid fires.

Another thing, pressing the ESC key may not take the focus off of the text box before it is releases and thus never fire also.
Previous
Reply
Map
View

Click here to load this message in the networking platform