Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement