- - * - WhiteUnicorn - * - -




* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >


Frequently Asked Questions

Returning application's exit code.

Question:

How do I return an exit code to the calling application or batch file from a Windows Console mode application written in Delphi?

Answer:

Call the Halt procedure, passing the exit code you wish 

to return.



Example:



begin

  Halt(2)

end.




* #WhiteUnicorn/ StartPage/ Documentation/DelphiFAQ >



- - * - Anastasija aka WhiteUnicorn - * - - LJLiveJournal
PFPhotoFile