Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parameters for INIT and LOAD
Message
From
05/08/2008 12:54:20
 
 
To
05/08/2008 09:02:26
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01336522
Message ID:
01336593
Views:
14
>I have SQL in the LOAD, but I need it to use the parameter sent to the form's INIT, but it is not available there. I could move the SQL to the INIT, but isn't that the point of the LOAD event?

In addition to all the other ideas, if you are launching your form from another form and the param is a property on the calling form you can access it in the called (child) form.load like this:
IF TYPE("_Screen.Activeform.Name") # "U"
      Thisform.oParent = _Screen.Activeform
      myParam = Thisform.oParent.sqlParam

ENDIF
Previous
Reply
Map
View

Click here to load this message in the networking platform