Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing variables within a report
Message
From
21/03/2006 17:01:03
 
 
To
21/03/2006 16:20:10
Steven Kleypas
Tarrant County College District
Texas, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
01106401
Message ID:
01106422
Views:
16
This message has been marked as a message which has helped to the initial question of the thread.
>In the old style report designer (VFP 7), is there a way to call a report from a form, retrieve a value from within the report and then have that new value available after the report is run? Thanks for any help on this!

Hi Steven,
I did a quick test in vfp9. I created a simple report and added pncount var to count the records. I initialize it in a form's method called doreport:
* test to see if var stays in scope in report and after
PRIVATE m.pnCount
m.pnCount=-1
REPORT FORM C:\TEMP\TEST.FRX preview
WAIT WINDOW "number of records="+TRANSFORM(m.pnCount)
The pncount var shows that the correct value.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform