Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combobox Questions
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01267056
Message ID:
01267136
Vues:
22
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform