Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox - Strange behavior
Message
From
11/06/2003 15:00:49
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00798672
Message ID:
00799077
Views:
26
Hello Mariam.

I put DoDefault() because they advised to me to do this.

Who is they and what is their rationale?

Combo.InteractiveChange()

Is this actually a line of code in your method? This should cause a syntax error (unless, of course, you have a global variable called combo or your global error handler happen to be ON ERROR *)

I'm thinking it's a bug.

Yes, I agree. It is probably a bug in your code < s >.


Personally, I would code it like this:

In the Valid() of the combo box put this code:
*** First of all, let's rename command1 to something
*** more meaningful and self documenting so we have some
*** clue about what it is doing
This.Parent.cmdDoSomethingSpecial.Rrefresh()
And in the refresh of my command button, I would have code like this:
This.Enabled = ( < The combo box's ControlSource has a specific Value or is not empty or some other condition > )
HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform