Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!sdd.hp.com!spool.mu.edu!munnari.oz.au!mel.dit.csiro.au!latcs1!stephens From: stephens@latcs1.oz.au (Philip J Stephens) Newsgroups: comp.sys.apple2 Subject: Re: Stacks, Basic, and Onerr Message-ID: <9788@latcs1.oz.au> Date: 20 Mar 91 06:07:45 GMT References: <9103191800.AA11676@apple.com> Organization: Comp Sci, La Trobe Uni, Australia Lines: 19 "Edward M. Moore" writes: > I'm trying to design a program using gosubs. One of the sections is > where I have a file-handeling (loading a shape table) from disk. I would > like to use OnErr Goto in order to handle the error, but when that happens > I loose my stack of gosubs. How can this be prevented? Most BASIC's should have a statement called "RESUME" that allow's you to re-enter the program at the point that the error occurred. If it doesn't, then you're either going to have to use a global variable to act as a indicator of where you were before the error occurred, or delve deeper into the mechanics of the BASIC interpreter/compiler. Sorry, but I can't see how I can be of more help! < Philip J. Stephens >< "Many views yield the truth." > < Hons. student, Computer Science >< "Therefore, be not alone." > < La Trobe University, Melbourne >< - Prime Song of the viggies, from > < AUSTRALIA >< THE ENGIMA SCORE by Sheri S Tepper > <\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/><\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/>