Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox On Select method
Message
From
05/05/2017 11:28:30
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01650871
Message ID:
01650874
Views:
39
>>>Hi,
>>>
>>>Which method of combobox fires when a user selects an item from the drop-down list? I need to set up some other controls based on the user selection. And I know that I should know this but simply forgot.
>>>TIA
>>>
>>>Update: I believe it is Valid() method. Somehow I didn't see this method when I was looking at the property sheet.
>>
>>InteractiveChange should also work.
>
>Wouldn't the InteractiveChange fire every time user changes the item in the drop-down? It may (if I understand correctly) fire "my changes" too many times. Whereas the Valid() only fires once. Am I correct?

That will depend on your application. Sometimes people want to see the changes while scrolling, sometimes not. If for instance you have one combo for State and one for Cities, people may get confused if they see Miami while the state combo momentarily shows Texas. Personally I have a timer running while people scroll. During scrolling the other elements are shown as disabled, once they stop scrolling for a short while the screen is updated.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform