Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Parameters to Reports 1

Status
Not open for further replies.

epsison

IS-IT--Management
Jan 7, 2003
24
0
0
PH
I am using the VFP Report Designer. How do you pass parameters to a report?
 
You can't pass a parameter to a report. A report is not a program or function, so it has no mechanism for receiving parameters.

If you want the report to reference a specific value from the calling program, store the value in a variable and make sure that it is Private.

For example, if your report needs to know the name of the current user, you could do the following:

PRIVATE pcUser
pcUser = <code here to get the user name>
REPORT FORM MyReport TO PRINTER
RELEASE pcUser

The report will then be able to see the contents of pcUser.

Hope this helps.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top