Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable
Message
From
18/05/2005 22:35:59
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
18/05/2005 22:30:57
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01015673
Message ID:
01015674
Views:
17
>How can i show a variable from a form on the report?I did it only for the first view of report(preview) when i use variable name directly from the form,when 2nd touch on the report(click on next page or zoom), the variable was gone bcoz the form was run over.Please help!

You can declare the variable either as public or as private. I recommend private, since it is less "drastic". Declare it in the same procedure in which you invoke the report (or in which you invoke another procedure, which then calls the report).

For example:
* Button click event
private pcTitle
pcTitle = alltrim(ThisForm.TxtReportTitle.Value)
report form abcde
In the report, you might show the variable title in a field expression.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform