Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form state just before and after Form.Init()
Message
De
24/12/2010 10:43:58
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
24/12/2010 05:50:26
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01493757
Message ID:
01493793
Vues:
56
>Basically, what you can't do in the Form.Init() is opening tables, if those are required for some of the form objects (through the objects' ControlSource or RecordSource). Since the objects instantiate before the form does, Form.Init() is too late, so you have to open the tables in Form.Load(), or in the form's DataEnvironment.

If you set .bindcontrols=.f. at design time, this is no longer an issue, you can open your aliases in form.init(), and then set .bindcontrols=.t. and then they will bind.

However, that's a one-time thing, i.e. the controls won't unbind if you set form.bindcontrols=.f. again, or if you add a control at runtime and try to give it delayed binding.

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