Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SETFOCUS() in lost focus event.
Message
 
To
22/06/1999 07:50:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00226954
Message ID:
00232431
Views:
14
>>Well, I don't know why the combobox does not get the focus when trying the setfocus method, but you can try the valid method, if you don't wan't the user to get out of the combobox, return 0, that won't give you an error and will keep the user until the right conditions are met and return .t. happens.
>>
>
>Actually, the valid event does not even fire for a dropdown box when you
>exit the field ... this is why any testing needs to be down in the
>lostfocus.

Lots of replies, I'm not sure whether anyone submitted this code for lostfocus:

nodefault
this.setfocus

will keep it where it is & fire gotfocus. Just 'Nodefault' will keep it where it is.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform