Error event
Occurs when a Trend object encounter an error.
The event is fired before the trend displays a message box containing the description string. To avoid displaying the error message, set the
CancelDisplay
parameter of the Error event to True.Syntax
Trend
_Error
(ByVal
Number
As Integer
, Description
As String
, ByVal
Scode
As Long
, ByVal
Source
As String
, ByVal
HelpFile
As String
, ByVal
HelpContext
As Long
, CancelDisplay
As Boolean
)where
Trend
- is the name of a Trend object (such as trend1) or an expression that evaluates to a Trend object.Number
- is the index number assigned to the errorDescription
- is the string describing the error that occurredScode
- is the error codeSource
- is the string containing the trend object’s nameHelpFile
- is the name of the help file that supplies more information about the errorHelpContext
- is the ID number of the help topic that supplies more information about the errorCancelDisplay
- is an argument of the type Boolean. CancelDisplay is False when the event occurs. If the event procedure sets this argument to True, no error message is displayed after the procedure returns.Provide Feedback