Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!cornell!rochester!udel!burdvax!bbking!rmarks From: rmarks@bbking.PRC.Unisys.COM (richard marks) Newsgroups: comp.lang.pascal Subject: TurboP ErrorLevel return question Message-ID: <23@bbking.PRC.Unisys.COM> Date: 28 Dec 87 19:19:59 GMT Organization: Unisys/Knowledge Systems Organization, Bluebell, PA Lines: 18 In Turbo Pascal 3.0 how does one return an ErrorLevel code? Can I do a func $4C with the code in AL directly? The exit code from TurboP goes thru all sorts of stuff, so I am a bit leary about doing this. Does one patch or InLine the XOR AX,AX; CALL 0C89 code at the end of a Turbo Pascal program? Is there some way to tell Turbo Pascal to just return a value? Does anyone know how to do this under 4.0 (I have not gotten my copy of 4.0 yet). Thanks, Richard Marks rmarks@PRC.unisys.COM