Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you pass a parameter to a report form? Can U ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00175300
Message ID:
00175727
Vues:
36
>I need to pass a customer name as a variable/parameter to a report.
>Is there a way to do it?

Erik hit the solution here. Define a procedure to generate the cursor for the report. Define private variables for the procedure and they will be visible to the report form.

PROCEDURE MyReport
PRIVATE pcVar1, pcVar2

pcVar1 = "SomeValue1"
pcVar2 = "SomeValue2"

SELECT Blah, Blah ;
FROM SomeTable ;
INTO CURSOR ;
MyReportCursor

REPORT FORM ..................

RETURN

pcVar1 & pcVar2 should be visible to the report.

Steve
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform