Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox Questions
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01267056
Message ID:
01267136
Views:
21
>I want to thank all of you for your responses, but, unfortunately, the problems still are not solved.
>
>I can't handle anything externally (such as in arrays, cursors, etc.) because it is a parent class- it is going to be the parent of all of the comboboxes in the system.
>
>strtran(this.value, "I","") is the same as strtran(this.value, "I"), since the third parameter defaults to "" when omitted.
>
>I tried using the Refresh, When, GotFocus, ProgrammaticChange, and Requery methods, but none worked. The status of Enable needs to change when the number of records in the RowSource (and therefore the ListCount) changes. ListCount_Assign would be the logical place to try, but it is illegal (and doesn't work). ListCount_Access would also seem logical (but overkill), but it doesn't fire when you think it should.
>
>I've been stumped for a while. Any other ideas?
>
>Jerry

For me requery sounds like a logical choice. Something like:

dodefault()

then depending on RowSourceType we need to check the number of records.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform