Table of Contents

Enum VBErlAfterErrClear

Namespace
RDCore.SDK.Runtime.Abstract.Execution
Assembly
RDCore.SDK.dll

What Err.Clear does to the line Erl reports.

public enum VBErlAfterErrClear

Fields

Kept = 1

Err.Clear leaves Erl as it is, as MS-VBA does.

Choose it when a workspace's own code depends on MS-VBA's behaviour, such as a handler that clears the error before it logs the line.

Reset = 0

Err.Clear resets Erl to 0, with the rest of the error it clears.

The default: once there is no error, there is no line it was raised at.

Remarks

An RD-VBA setting, as VBErlLineNumbering is (RD-VBAL §6.1.2.7.1.14). In MS-VBA, Err.Clear resets the error's number and the rest of the error object, but Erl goes on reporting the line of the error it cleared. A Resume statement, an On Error statement and leaving the procedure from an error handler do reset it, in MS-VBA as in RD-VBA, whatever this says.