Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need parameter from INIT available in LOAD or something.
Message
From
08/07/2005 16:14:59
 
 
To
08/07/2005 16:08:44
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01030715
Message ID:
01030719
Views:
17
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform