Accusoft BarcodeXpress v9.0
RaiseExceptions Property
See Also  Send comments on this topic.
AccusoftBarcodeXpress9 ActiveX DLL > BarcodeXpress Object : RaiseExceptions Property

Glossary Item Box

Description

Determines if errors are raised as exceptions in the application.

Property Type

Read-write property

Syntax

Visual Basic
Public Property RaiseExceptions As Boolean

Return Type

A boolean value which is True to raise errors as exceptions. Otherwise, False is returned.

Remarks

The default value is True.

If set to True, the component requires an On Error GoTo statement and a label to catch the exception, as outlined below:

On Error GoTo ErrorHandler

myControl.RaiseExceptions = True

...

myControl.DoSomething

...

ErrorHandler:

Log "Caught exception from Accusoft control: number = " _

& (Err.Number - vbObjectError) _

& ", description = '" & Err.Description & "'"

To get the last error number and description, use the ErrorCode and ErrorDescription properties.

If set to False, only return the error property results from ErrorCode and/or ErrorDescription.

See Also

©2013. Accusoft Corporation. All Rights Reserved.