Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!munnari.oz.au!uhccux!uhunix1.uhcc.Hawaii.Edu From: todd@uhunix1.uhcc.Hawaii.Edu (Todd Ogasawara) Newsgroups: comp.windows.ms Subject: WfW BASIC 'on error goto' Message-ID: <11497@uhccux.uhcc.Hawaii.Edu> Date: 17 Feb 91 09:34:58 GMT Sender: news@uhccux.uhcc.Hawaii.Edu Organization: University of Hawaii Lines: 25 I'm obviously doing something wrong in WordBASIC, but I can't figure out what. Here's the situation. I built a WordBASIC dialog box with an OKButton, a CancelButton, and a ListBox. If I choose the OKButtong, I get the expected results and can proceed with the next action based on my list selection. However, I run into problems when I press CancelButton and want to act on it. The WordBASIC ref manual says that I can use On Error Goto 0 to ignore the error generated by CancelButton and use the Err value that is returned. However, using 'On Error Goto 0' doesn't seem to do anything. I still get a runtime error and cannot process the error code returned by Err. I tried 'On Error Resume Next' and that seems to work as advertised (the cancel generated error is ignored and the next WordBASIC instruction is processed). Any hints would be appreciated...todd -- Todd Ogasawara, U. of Hawaii UUCP: {uunet,ucbvax,dcdwest}!ucsd!nosc!uhunix!todd BITNET: todd@uhunix INTERNET: todd@uhunix.UHCC.HAWAII.EDU