Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Required Fields?
Message
 
To
16/01/1997 10:56:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00017517
Message ID:
00017528
Views:
72
>The Valid() is the way to go. Can you give us additional information so we can track why the Valid() is not working?

Sure. Ok, once the control has focus the user is not allowed to leave that control until some value is entered into the combobox (the combobox is initially blank). Originally, I had in the valid event of the combobox:

IF EMPTY(this.Value) .AND. this.required
return .F.
ELSE
return .T.
ENDIF

Now, if the user uses the tab to get to the combobox and does nothing and then uses the tab to exit the combobox, the valid event is not fired. If, when in the combobox, the user uses the up or down arrows to change the value in the combobox, the valid event is fired _every time the value changes_.

Michael G. Emmons

Michael G. Emmons
memmons@nc.rr.com
Previous
Reply
Map
View

Click here to load this message in the networking platform