Qbasicnews.com

Full Version: Error Handling Routines
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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!
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. Smile

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

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