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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing Parameters? 1

Status
Not open for further replies.

DaveL

Programmer
Jun 8, 2000
40
US
I have a form that collects user input to be used for producing a report. When the "Print" button is clicked, I want to call an external program to print the requested report. How do I pass parameters to and receive parameters in the print program?

Code:
** Call report program from click event
parm1 = ThisForm.field1.Value
parm2 = ThisForm.field2.Value
DO report_program WITH parm1, parm2

** Report Program
PROCEDURE report_program
PARAMETERS parm1, parm2
[\code]

Thanks!
 
I guess I am confused. The code you put in the question is the correct code for passing parameters. Although I would consider using lparameter instead of parameter (it makes sure the parameters are local to the called program)

 
Thanks fluteplr!
Of course, you are right. After testing a little more, I found that I had a different problem. Thank you for the feedback!
Dave.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top