Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
YAQ on order on instantiation
Message
De
14/02/2008 18:01:02
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01292806
Message ID:
01292845
Vues:
29
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform