VLPropertyList Reference

MethodDisplayError

See Also See Also Applies To Applies To

Occurs when an error needs to be reported to the user.

 

Syntax

Private Sub object_DisplayError(ByVal sMessage As String,ByVal nErrorCode As Long ByRef bShowMsgBox As Boolean)

 

The DisplayError event syntax has these parts:

PartDescription
object An object expression that evaluates to an object in the Applies to list.

sMessage

A string expression specifies the error message to be shown to the user.

nErrorCode

An numeric expression specifies the error number.

bShowMsgBox

A boolean expression controlling error reporting as specified in the settings.

 

Settings

Setting for bShowMsgBox are:

Value Description
True (Default) Control will display error message to the end user.
False Control will not display error message to the end user.

 

Remarks

Through this event your can specify if the error should be reported to the user by the control. You may choose to report the error through your own error reporting mechanism. In such situation, you must set bShowMsgBox to false .