Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Required Fields?
Message
From
16/01/1997 10:38:05
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00017517
Message ID:
00017519
Views:
67
>I was surprised as I was working on a project the other day. I had a field that is required under certain conditions. To take care of this I placed a bit of code in the Valid method of the combobox that is bound to this field and didn't give it a second thought. As I was testing my changes, however, I was surprised to find that the valid method was not being fired unless the user changes the field. I was under the impression that the Valid method always fires right before a control looses focus. Well, apparently not. At least not for comboboxes.

If you want to take action based on the user selection in the combobox, you can use the Click() event.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform