Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Very strange problem with controlsource of combobox
Message
From
27/08/1999 13:10:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Very strange problem with controlsource of combobox
Miscellaneous
Thread ID:
00258514
Message ID:
00258514
Views:
51
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?
Next
Reply
Map
View

Click here to load this message in the networking platform