Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to keep control on a combobox when user clicks out
Message
 
 
To
06/06/2003 17:21:55
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00797500
Message ID:
00797509
Views:
20
>A combobox starts out with controlsource empty. We want to force user to either make a choice, press escape, or press the cancel button. Since the valid event does not fire if user clicks on onother control we are trying to place code in LostFocus but haven't been able to figure out what works.
>
>Any ideas? TIA,
>
>Alex

You can put NODEFAULT into LostFocus to prevent it from loosing focus. Something like
IF EMPTY(This.Value) AND LASTKEY() <> 27
  NODEFAULT
ENDIF 
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform