Sure, Jan, I had an immediate need to convert just one report from RBDOS but be able to run it from my RBDOS app. I needed to pass a transaction ID so the compiled app would know what to do.
In the past, I would play games with writing a command file for another session of RBASE to run. This gets very hairy when you are doing it in an environment that includes a couple of users on a citrix server. Where do you write the file so that there is never a possibility of a conflict? Besides, it is a pain to write and debug. Being able to pass info via the command line is the right way to do this kind of thing, and is very simple. Dennis McGrath ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of jan johansen Sent: Thursday, October 09, 2008 9:22 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Passed parameters to compiled app Dennis, Would you mind sharing what you were doing? This sounds interesting. Jan -----Original Message----- From: Dennis McGrath <[EMAIL PROTECTED]> To: [email protected] (RBASE-L Mailing List) Date: Thu, 9 Oct 2008 09:16:49 -0500 Subject: [RBASE-L] - Re: Passed parameters to compiled app Thanks again Larry, It works perfectly! This will solve my immediate problem in a most elegant manner! Dennis ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Dennis McGrath Sent: Thursday, October 09, 2008 9:07 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Passed parameters to compiled app Fabulous, Larry! That's exactly what I need. Dennis ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Lawrence Lustig Sent: Thursday, October 09, 2008 8:48 AM To: RBASE-L Mailing List Subject: [RBASE-L] - Re: Passed parameters to compiled app << Is it possible to pass one or more parameters to a compiled app? Say the compiled app is called test.exe I would like to start it thus: test.exe xxx I’d like the compiled app to be able to capture xxx in a variable to be used by the program. >> Yes, but you have to call into Windows using the new DLCALL facility to get the command line, then parse it yourself. Here's some code I cribbed from Mike Byerly to do this: IF (CHKFUNC('GetCommandLineA')) = 0 then STDCALL FUNCTION 'GetCommandLineA' ALIAS 'GetCommandLine' () : TEXT ENDIF SET VAR vCommandLine = (DLCALL('Kernel32', 'GetCommandLineA')) -- Larry

