Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very strange problem with controlsource of combobox
Message
De
27/08/1999 13:10:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Very strange problem with controlsource of combobox
Divers
Thread ID:
00258514
Message ID:
00258514
Vues:
52
We created a combobox class that automatically sizes itself and so on based upon its content. It also uses the tooltip property to display to the user the description of the currently selected value when moused-over.

This control is used widely on many forms and up to this point had been working perfectly. BTW, it still worked perfectly on forms where it had already been placed.

All of a sudden, the control appeared to no longer be bound to its' controlsource. This only occurred, however, for newly instantiated objects of this class.

We spent endless hours trying to see what the problem was, but came up empty.

Finally, using debugger, I decided to merely retype the controlsource value in the locals window for the object. Upon pressing enter, the display value appeared and showed the proper value based on the controlsource.

In the Init() of the class, I simply added the following line:

This.ControlSource = This.ControlSource

and everything is now fine (again)!

Has anyone ever seen anything this strange?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform