Path: utzoo!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!ncar!gatech!udel!haven!adm!news From: Mark@hamster.business.uwo.ca (Mark Bramwell) Newsgroups: comp.lang.pascal Subject: halt() problem Message-ID: <26295@adm.brl.mil> Date: 18 Mar 91 18:23:15 GMT Sender: news@adm.brl.mil Lines: 26 I am trying to write a very simple program but I am having a difficulty with the halt function. I want the program to end and set an errorlevel so I can test it via a batch file. Example: program test; begin halt(1); end. should it not give an errorlevel of 1? XYZ.BAT contains: test if errorlevel 1 ver It does not print out the dos version. I beleive I have used this in the past, but I only have 6.0 loaded on my machine now. Any ideas? Does anyone with 5.x want to try it? =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Mark Bramwell, VE3PZR Located in sunny London, Ontario Internet: mark@hamster.business.uwo.ca IP Address: 129.100.22.100 Packet: VE3PZR @ VE3GYQ UWO Phone: (519) 661-3714