Daily Shaarli
November 14, 2023
delphi - How to return an error code with Halt(n) from an Exception block with D2007? - Stack Overflow
Don't forget that reading the errorlevel clears it.
We are causing the ErrorLevel variable to be reset by just performing a command that we know will succeed