Accusoft BarcodeXpress v14.0 - Updated
AccusoftBarcodeXpress14 ActiveX DLL / BarcodeXpress Object / RaiseExceptions Property
In This Topic
    RaiseExceptions Property
    In This Topic
    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:

    VB6
    Copy Code
    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