Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combo box with no ControlSource problem
Message
From
20/03/2011 15:57:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
20/03/2011 15:32:43
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01504238
Message ID:
01504259
Views:
45
>Well, I guess I have been extremely lucky then, because I have gobs of forms that do this, and have not ever seen any problem behavior because of it.

Then you didn't have any serious code in the parent's .activate(), because calling a control's .refresh() during .init() (of the control or anywhere in the membership hierarchy) will force the form (or container) to go visible, which will then fire its .show() and then .activate(). If you didn't have much code there, then probably nothing wrong happened.

The solution I'd propose against that kind of problem, when present, is to put such code in a custom method of the combos, something like .Setup(), whichwould be called when necessary - when binding, or from .refresh() or .requery() - depending on what it needs to do.

A simpler trick for Dmitry to try before this is to give his unbound combo an initial .value, preferably in the PEM sheet.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform