Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need parameter from INIT available in LOAD or something.
Message
De
08/07/2005 16:14:59
 
 
À
08/07/2005 16:08:44
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01030715
Message ID:
01030719
Vues:
15
>Passing a data directory reference into a form, but need to access the data from that directory in either the form LOAD, DE or MyForm.MyObject.INIT. The LOAD comes first, then the object INITs, but unfortunately the parameter value is not available until the form INIT. Seems back-assward if you ask me. What can I do to be able to get to the data in the passed directory before the INIT of the form?

i don't know if there is an easier way (specially after Vfp6 - my fox), but here is what i have done in my app:

i've created a "FormHandler" which is actually called with the form to be loaded and the parameters to be passed instead of "do MyForm with ...". the FormHandler then actually calls the form and has the parameters ready for the form in its properties. the form then looks in the FormHandler's properties if any parameters exist for this form.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform