Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Variables to Reports
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00221356
Message ID:
00221799
Views:
14
>Oops! Sorry, Bruce... got my wires crossed. And right you are again. Although the button says "print", click fires the method oApp.reportmgr.rptprint() and that method does the REPORT FORM myreport. Seems like _screen.myform.myprop should be visible to the report, but causes the error "unknown member myform".
>Hopefully there is a scoping solution without using globals. I could go off into oApp.reportmgr and add some rather generic properties. But report objects (i.e. special titles, selection criteria, etc.) should reasonably originate with the form and scope to the report, IMHO.

A couple ideas;

1) try referring to _screen.activeform (assuming it's active)
2) launch myform as an object of oApp so it can be referenced, that is create a property (can be array) something like:

oApp.Myform

then launch myform either way:

a) Do Form myform NAME oApp.Myform

b) oApp.Myform = createobject('myform')

Now myform will be aware of oApp (and vice versa)...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Previous
Reply
Map
View

Click here to load this message in the networking platform