ErrorMsg Event
Public Event ErrorMsg(Source$, Description$)
This Event is raised when an error occurs in ecGradient. You can deal with it in your main program with a routine like the one shown below.
Parameter | Type | Description |
Source$ |
String |
The module and procedure where the error occurred |
Description$ |
String |
A description of the error |
Example
Private Sub ecGradient_ErrorMsg(Source As String, Description As String)
'Shows how to deal with any critical error that may arise in ecGrid,
'instead of crashing the program
Dim i As Integer, ErrMsg$
ErrMsg$ = Source + vbCrLf + Description
i = MsgBox(ErrMsg$, vbAbortRetryIgnore)
If i = vbAbort Then End
On Error GoTo 0
End Sub
Contents Variables Events Properties Functions Subs
Copyright © 2007, Encore Consulting Pty Ltd