XPRBseterrctrl
XPRBseterrctrl |
Purpose
Synopsis
int XPRBseterrctrl(int flag)
Argument
flag
|
Indicator value for error handling. May be one of:
|
Return value
0 if function executed successfully, 1 otherwise.
Example
The following switches to error handling by the user's own program.
XPRBseterrctrl(0);
Further information
1. This function controls whether BCL performs error handling. By default, the execution is stopped whenever an error occurs. If the error handling by BCL is disabled, the user needs to perform the checking for errors in his program by testing the return values of all functions or using the callback function
XPRBdefcberr. It may be preferable to disable the error handling by BCL if a BCL program is embedded into some larger application or executed under Windows. Callback function
XPRBdefcberr can be defined to retrieve the error messages and implement user error handling.
2. This function can be used before BCL has been initialized.
Related topics