sawell
18th April 2011, 16:27
Hi!

I would like to call an external program that is located on my local windows system. I know how to start it for example with app_start. My problem is, that the local exe-program sets a return code, for example "0" for correct or an error number like "2817" for a specific error. How can I retrieve this return code in baan IV?

Thanks in advance!

Best regards
sawell

george7a
18th April 2011, 16:57
The exe can write the error number on a specific error file, and then you can read this files from baan tools.

sawell
18th April 2011, 17:00
@george7a
Thanks for your reply. That is of course possible, but not the solution I was looking (hoping) for...
So, in baan IV there is no way of receiving the return code from app_start (or a similar function) without writing a file?

Han Brinkman
18th April 2011, 17:19
Seems you need to use start.application.local nowadays. app_start is deprecated according to the LN programmers guide. Please check if that's the same with BaanIV.
start.application.local is able to return the exit code.

Regards,

sawell
18th April 2011, 17:34
@Han Brinkman
yeah, but that function isn't available in baan IV :(
(at least according to my help file)
But I will test it ...I wonder if I need a specific version of baan IV (maybe it was included in somw newer porting set?)?