Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending Variables to Reports
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00221356
Message ID:
00221799
Vues:
13
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform