<<
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