Viewer.LastErrorCode Property (Visio Viewer)

Gets the last error code returned by Microsoft Visio Viewer. Read-only.

Syntax

expression. LastErrorCode

_expression_An expression that returns a Viewer object.

Return Value

Long

Remarks

The default value of the LastErrorCode property is 0.

To determine what the error code returned by the LastErrorCode property means, you can pass the code to the GetErrorMessage method.

Example

The following code gets the last error code returned by Visio Viewer.

Debug.Print vsoViewer.LastErrorCode