Главная страница | назад





Article #17454: Returning application's exit code.

 Question and Answer Database
FAQ2454D.txt Returning application's exit code.
Category :Object Pascal
Platform :All
Product :All 32 bit
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.
7/16/98 4:31:28 PM

Last Modified: 01-SEP-99