Question passing parameter to a progress 4gl file using prowin32

abhinit41

New Member
0
I am trying to pass multiple input parameters using prowin32 . But i am not able to find out the correct way of passing multiple parameters.
This is the code of my *.p file

Code:
define input parameter param1 as character no-undo.
define input parameter param2 as character no-undo.
message param1 param2
view-as alert-box.

and I am trying the below command in proenv

Code:
prowin32.exe -p D:\proj\myfolder\sample.p -param "1stValue","SecondValue" -clientlog D:\proj\myfolder\pf\lg.log

I tried removing the quotation marks of the input parameters but I am still getting error saying
Code:
mismatched parameters passed to the routine
 
The program you run from the command line cannot have any input parameters.

-param will not pass input parameters, it will set session : parameter which you can use in a wrapper:

Code:
run your.p ( entry( 1, session:parameter ), entry( 2, session:parameter ) ).
 
Back
Top