Qbasicnews.com
April 09, 2020, 07:48:30 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Back to Qbasicnews.com | QB Online Help | FAQ | Chat | All Basic Code | QB Knowledge Base
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Error Handling Routines  (Read 1468 times)
joey7643
Member
*
Posts: 59


« on: March 11, 2003, 06:49:26 PM »

Hello,

I have an error handling routine set in the main module, where if an error is encountered, it goes to a "error" sub, where an error message is displayed.

Everything works nicely BUT...when I put in either the RESUME or RESUME NEXT statement, an error comes up (outside of the program execution) with a "RESUME without ERROR" error message.

Help!
Logged
Dex4now
Member
*
Posts: 75


WWW
« Reply #1 on: March 11, 2003, 06:53:36 PM »

Hi joey, I've seen this happen when your programs path inadvertantly flows into the area where the RESUME is without having actually been routed there by an ERROR.  

I know its simple, but worth double-checking.   Smiley

Dex
Logged
joey7643
Member
*
Posts: 59


« Reply #2 on: March 11, 2003, 07:13:51 PM »

Yeah, it doesn't seem like that is the problem.

Thanks, though  Cheesy
Logged
Agamemnus
x/ \z
*****
Posts: 3491



« Reply #3 on: March 11, 2003, 07:36:03 PM »

trap the error with testing individual parts, SYSTEM, PRINT, and PSET. QB Error handling is good but it's incompatible with SUBs, i think??
Logged

Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."

Visit www.neobasic.net to see rubbish in all its finest.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!