Matrix1 Utility Plug-ins

# SET ERROR FUNCTION

Syntax

SET ERROR FUNCTION FunctionName$ SET ERROR FUNCTION FunctionPtr

Description

This command allows you to set a function to be called when the next error occurs within your DBPro program. If you specify a blank function name, or a function pointer value of zero, the error capture will be disabled. If an error occurs within your error handling function, then unless you have set another error handler, the program will be terminated with the relevant error message. The function that you specify can accept 2 arguments - the first is the error code, and the second is the line that the error occurred on. At the point where the error function is called by the system, the error capture will have been disabled. If further errors are to be caught, then a new call to this command should be made with a suitable function. When you return from the function, the program will be terminated with no error being reported. Please note that Matrix1Utils errors will all return error code 99. If a plug-in uses its own error handling mechanism, then it may not trigger your error handling function.

Go back to ...

Matrix1Util_06 Commands Menu
Matrix1 Utils Main Index
Matrix1 Utils Command List
Commands Menu
Main Menu

Copyright © Ian Mold - Matrix1 Software 2006 - 2011