Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!att!ucbvax!CUE.BC.CA!mpratap From: mpratap@CUE.BC.CA (Matt Pratap) Newsgroups: comp.lang.pascal Subject: On error goto for pascal? Message-ID: <9105030125.AA18493@cue.bc.ca> Date: 3 May 91 01:25:48 GMT Sender: daemon@ucbvax.BERKELEY.EDU Lines: 23 This may be old hat, but I just started reading this group. I need to get my programs, written in Tp5.5, to execute a procedure or flag a variable/address when a run-time error occurs, instead of exiting the program with an error. I know how to do this with dos and graphics errors. eg: if a user enters 2 real numbers and the program multiplies them together, and if the result is too large for even a real number to handle, the program will quit with an error. Instead I would like to check (via a variable or address) if the result was ok, before proceeding, else it will take steps to deal with the problem. Even my instructor ('Turbo Tom') can figure out how to do this. Thanks ------------------------------------------------------------------------- Matt Pratap, Victoria B.C. -=- mpratap@cue.bc.ca * (Insert quote here!) -------------------------------------------------------------------------