Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Button.cancel and valid()
Message
From
23/10/1998 08:54:50
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/10/1998 08:39:17
Man Wai Chang
Hang Hing Metal Manufacturer
Hung Hom, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00149787
Message ID:
00149795
Views:
12
>Is there a way to tie the ESC key to the
>cancel button WITHOUT firing the valid()
>of individual controls?
>
>I can think of using the form.keypressed()
>method, or inserting extra codes ( checking
>lastkey()=27 ) into controls.valid() methods,
>but is there any neater solution?
You could set button's cancel property to true and move valid code to lostfocus, add :
if lastkey()#27
* Your valid code
* nodefault where should return .f.
endif
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform