Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determining button pressed from textbox LostFocus
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00236947
Message ID:
00237045
Views:
19
Mike,

An alternative appraoch that isnnot name dependent and will probably make your users happy, is to set the cancel button's Cancel property to .T. making it the Escape button. This causes the Escape key to fire the Cancel button's Click and a click on teh Cancel button will cause LastKey() to return 27 indicating the Escape key.

Now in your LostFocus you simply;
IF LastKey() = 27
   * Cacnel
   RETURN .T.
ENDIF
* Other processing here
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform