Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAQ on order on instantiation
Message
From
14/02/2008 18:01:02
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01292806
Message ID:
01292845
Views:
27
>As soon as I sent you my previous message I thought about the same. Why not to do all this business in the container INIT method. And then from the INIT method to .Requery() the combo.
>
>Thank you very much for the suggestion. It should work.

Exactly the technique I've found useful in several situations. Doing something to combo's rowsource (or creating it) in combo's .init() is not really nice, because it happens only once, and actually belongs to .requery(). If it relies on entities which will exist later, well, call it later. The upside of this is that the code is in combo's .requery() where it can be called whenever needed later, in case something changes the underlying data from which the combo pulls, and we want to update the rowsource.

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