Parameter passing -Param, How?

Posted by soonhuat_81 on 19-Aug-2014 03:27

Hi Folks,


I am new in progress OpenEdge.

I wish to pass a text/string to progress client during the start up of the program.

-Param is the only option/method to use ?

It's only support comma delimiter? Any other method to use?

Anyone here can advise me.

Thank you in advance. =)

Regards,

Huat

Posted by James Palmer on 19-Aug-2014 03:33

AFAIK -param is the only option. But it doesn't have to be comma delimited. It can be a string of whatever you like, so long as your program deals with it. So you can use | if you prefer, or some other method.

All Replies

Posted by James Palmer on 19-Aug-2014 03:33

AFAIK -param is the only option. But it doesn't have to be comma delimited. It can be a string of whatever you like, so long as your program deals with it. So you can use | if you prefer, or some other method.

Posted by soonhuat_81 on 19-Aug-2014 04:05

Hi James, Thanks for the prompt response. =)

Because i have a external program try to pass some information to progress client on start up (string separate with PIPE delimiter)

Posted by Mike Fechner on 19-Aug-2014 04:09

You can pass anything using –param – when passing longer strings, you might want to put quotes around the string:

prowin32 -param "Test    |Test2   "

Posted by soonhuat_81 on 19-Aug-2014 04:32

Hi,

i tried to run it with window cmd prompt.

If -param with  "Test,Test2", it is working fine.

Not working if i change to "Test |Test2".

with 9.1B version progress.

Posted by soonhuat_81 on 19-Aug-2014 04:36

Thanks all for the helps.

my mistake. should use double " quote instead of single.

Yes, it working fine with comma delimited and PIPE.

Posted by Mike Fechner on 19-Aug-2014 04:36

Works fine for me! Did you use a proper quote sign? Sometimes copying quotes from web pages inserts now the right character.
 
Are you getting an error?

Posted by soonhuat_81 on 19-Aug-2014 05:00

Thanks Mike!

i used the single quote by mistake.

It's working now. Thanks a lot. =)

This thread is closed