Returns a string, which is the name of the action in which the run-time error occurred. Read-only at runtime.
Err.Action
Newlook Smartclient
Newlook Server
This property is useful if you are running a macro and you want to catch any run-time errors and return the action that initiated the error.
It should be used in conjunction with the OnError action. This action sets an error handler label. Macro execution will then skip to this label within the macro if a run-time error occurs. The Action property can be used to return the name of the action that generated the error - allowing you to identify the source.
The action, description, line, macro and number properties can all be used with the Err object to return more information about the run-time error that has been generated.
The following macro will catch any runtime error, handle it according to its number and store a description of the error in a variable. MACRO EDITOR
|
OnError action | Description property | Line property | Macro property | Number property