Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to access one form's controls from another
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
How to access one form's controls from another
Miscellaneous
Thread ID:
00438353
Message ID:
00438353
Views:
79
I have a generic Form which I call to do all my reports. I would norammly call this from the application forms e.g.

In MyAppForma Do form ReportForm with 'Reporta'
In MyAppFormb Do form ReportForm with 'Reportb' etc.

Then, ReportForm allows selection of Screen/printer/File etc.

Quite often , I will need to access properties of the first calling form (.i.e MyAppForma, MyAppFormb etc) within the report irself.

I could maybe pass these as parameters, but the paramters going into ReportForm will be dependant on the calling screen, and will change each time.

Is there any way to pass the whole form as an 'Object' into ReportForm so that i could say somthing like:

laVar1= ReportForm.oCallingForm.Property1
lavar2= ReportForm.oCallingForm.Property2 etc.

and then have these available to print on the report.

Thanks for your help

Gerard
Next
Reply
Map
View

Click here to load this message in the networking platform