-param PROBLEMS

Bubbancs

New Member
Hi there!

I hav a problem with -param , posting a parameter to a file.
:confused:
I have ver. 9.1c .
I run from a command line the line :

prowin32.exe -p c:\temp\12.p -param test

in the 12.p ther is only :

DEFINE INPUT PARAMETER cPatchID AS CHARACTER.
MESSAGE cPatchID
VIEW-AS ALERT-BOX INFO BUTTONS OK.

And there is an error message:
Mismatched number of parameters passwd to procedure c:\temp\12.p (3234)
**Unable to run startup procedure c:\temp\12.p (492)


PLS HELM ME !!!!!
 
The -param you pass into a client session is NOT an input parameter for the startup program.

It is the SESSION parameter and can be accessed in your start up program by using

SESSION:pARAMETER

If you require more than one parameter passed into your session it is best to use a comma separated list and then retrieve it

ASSIGN cparam1 = ENTRY(1,SESSION:pARAMETER)
iSequence = INT(ENTRY(2,SESSION:pARAMETER))
...

Yor code should read
/* DEFINE INPUT PARAMETER cPatchID AS CHARACTER. */
MESSAGE SESSION:pARAMETER
VIEW-AS ALERT-BOX INFO BUTTONS OK.

The SESSION:pARAM can be accessed anywhere in the SESSION, not just in the start up program
 
Top