Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Method call from report
Message
De
19/06/2002 21:07:38
 
 
À
18/06/2002 16:50:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00669903
Message ID:
00670421
Vues:
29
This message has been marked as the solution to the initial question of the thread.
>I have a report which is part of a suite of reports. The suite contains common selection dialogues and is compiled as a COM object so that other components can generate and deliver reports as required. Methods in the COM object execute the SQL commands and result in a cursor that is delivered to the report. My problem is that within the report I need to call a method in the COM object to perform actions when each record in the cursor is processed. Since the report is not an object that is "contained" in the COM object This.Parent.MyMethod won't work. I can call an external program from the report, but then I cannot use methods and properties of the COM object. Can anyone give me an idea how to do this?
>
>Thanks.
>
>Rick Grinter

Create a private variable and save a refference to THIS (or THIS.PARENT in it)
e.g.
PRIVATE poThisParent
poThisParent = This.Parent
* Report Form ...
In the report instead of This.Parent use the variable (poThisParent in the example)

HTH
Zlatin Zlatev,
MCSD (VS6)

Make solutions, not programs!

Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform