Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / "On error"

Author
Message
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 12th Jun 2007 03:17
Is it possible in anyway to trap or direct errors that occur?

For example in VB you can direct the program to a message box if an error is detected. This is done through an "on error goto" statement. It would be nice to do that in DBP so an end user doesn't get an "Error on Line XX" statement. Looks unprofessional.

Thank you TGC for creating such amazing products!

Success does not come with meeting the minimum requirements.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Jun 2007 10:07 Edited at: 12th Jun 2007 10:10
Not possible in the basic product, but take a look at IanM's Matrix utilities (in DLL Talk, I think). There is some error trapping functionality in one of those.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Jun 2007 15:37
You can, of course, code to prevent obvious errors. For example, you never need to have an error concerning missing files, divide by zero, array out of bounds, etc, because you can avoid them with good coding practises.

spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 12th Jun 2007 18:01
MatriX
21
Years of Service
User Offline
Joined: 19th Oct 2003
Location: Deer Park, New York
Posted: 14th Jun 2007 02:42
Interesting thanks. I will look into both solutions.

Thank you TGC for creating such amazing products!

Success does not come with meeting the minimum requirements.

Login to post a reply

Server time is: 2024-11-25 18:03:06
Your offset time is: 2024-11-25 18:03:06