It would be nice, when a application can set a exitcode. For example with a additional parameter for the END-Command.
edit:
and a
ExitCode=RunProgramEX(RunProgram(DateiName$, [, Parameter$, ArbeitsVerzeichnis$ [, Flags]])
and for flag only the hide flag (btw, why no #pb_RunProgram_Hidden and #pb_RunProgram_wait exist?).
RunProgramEx should always wait for the end of the program.
I don't know exact, but lcclnk.exe seems to return a exitcode...
[Implemented] END #ExitCode
[Implemented] END #ExitCode
Last edited by GPI on Wed Mar 24, 2004 9:34 pm, edited 1 time in total.
Code: Select all
Procedure RunProgramEx(Exe.s,CMD.s,WorkDir.s,Flag)
If Flag
id=RunProgram(Exe,CMD,WorkDir,3)
Else
id=RunProgram(Exe,CMD,WorkDir,1)
EndIf
GetExitCodeProcess_(id,@exitcode)
ProcedureReturn exitcode
EndProcedure