On 21-3-2013 14:23, David Copeland wrote: > Hi, > > How can I set the exit status/return code of a Lazarus application? I > have done some searching but haven't found it. IIRC, I think it's halt. There might be a fancy lazarus way of doing it (have a look at the application object...)