error_trap

Defines code called by error().

Available in:

Apps (win) Apps (char) Reportwriter RPC Standalone PL
X X      

Syntax

void error_trap(error-code)
block           error-code

Description

Defines code that is called by error(). It reads the contents of error()'s variable in parm.0.

Example

Placed in the Global window trigger by default:
error_trap({ g.msg = parm.0; bell(); });
During the development phase of a system, you may find the following error_trap useful:
error_trap({ g.msg = parm.0; log("error.log",parm.0); bell(); });