Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you pass a parameter to a report form? Can U ?
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00175300
Message ID:
00175727
Views:
35
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform