Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!math.fu-berlin.de!fauern!unido!rwthinf!rwthi3!ricki From: ricki@john.informatik.rwth-aachen.de (Richard Breuer) Newsgroups: comp.lang.pascal Subject: Re: Mr. Questions asks: "how do i..." Message-ID: Date: 26 Apr 91 10:18:08 GMT References: <1991Apr25.233511.14497@javelin.sim.es.com> Sender: news@rwthinf.UUCP Lines: 9 tpehrson@javelin.sim.es.com (Tim Clinkenpeel) writes: >is there a command or method of exiting/aborting the program (not just a >procedure/function/whathaveyou) in turbo pascal 5.0 or thereabouts? Try 'halt(errlev);' or just 'halt;' which exits a program to DOS with optionally setting errorlevel to the value 'errlev'. Bye, Ricki.