Error Event
Syntax
Sub ControlName_Error( Number As Integer, Description As String, Scode As Long, Source As String, HelpFile As String, HelpContext As Long, CancelDisplay As Boolean)
Applies To
Purpose
Generated when the user enters an illegal value in the CWNumEdit control.
Remarks
The CWNumEdit control generates this event when the user types in an illegal value.
Parameters
Number As Integer
The lower 16-bits of the Scode value.
Description As String
Error description returned by the control. By default, this parameter returns one of three strings: "Type Mismatch", "Out of Present Range", or "Invalid Input". You can override these values by providing your error description inside the Error event handler. If CancelDisplay is set to True, no error messages are displayed.
Scode As Long
The Windows error code number.
Source As String
Application name.
HelpFile As String
Help file name.
HelpContext As Long
Context ID for the help file.
CancelDisplay As Boolean
Displays error descriptions in a message box when set to False (default value). If set to True, the control does not display the Description parameter default values or any values you specify for Description.