Search results for 'Exit Code'. 1 post(s) found.
2009/07/02 17:12
How to return exit code such as exit() function in C/C++ ?
2009/07/02 17:12 in Delphi

You can return Exit Code in delphi by following method:
var
i : Integer;
begin
// Set up an error address so that halt shows a termination dialog
ErrorAddr := Addr(i);
// Set the program Exit Code
ExitCode := 8;
end;
i : Integer;
begin
// Set up an error address so that halt shows a termination dialog
ErrorAddr := Addr(i);
// Set the program Exit Code
ExitCode := 8;
end;
As you can see above, you can set Exit Code by ExitCode variable. That is global variable indicating Exit Code.
Another posts included in "Delphi"
| How to send email by TIdSMTP VCL ? (0) | 2009/07/07 |
| Base64 Encoding/Decoding function for Delphi (0) | 2009/07/16 |
| How to encode subject content when sending mail with TIdMessage ? (0) | 2009/07/16 |
| How to get parameter string ? (0) | 2009/06/30 |
| Save TBitmap image to Jpeg format image in Delphi (0) | 2009/06/26 |
| How to get screen resolution in case of using multiple monitors ? (0) | 2008/12/16 |
| How to turn off monitor ? (0) | 2008/12/10 |
| Find File at certain directory in Delphi (0) | 2008/10/10 |
Prev

Rss Feed