Function |
Declared in: NiNumEditEvents.h |
Declaration
void OnError( short Number, BSTR FAR* Description, long Scode, LPCTSTR Source, LPCTSTR HelpFile, long HelpContext, BOOL FAR* CancelDisplay);
Description
Generated when the user enters an illegal value in the numeric edit control.
Parameters
The lower 16-bits of the Scode value.
The 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.
The Windows error code number.
Name of the application that generated the error.
Associated help file.
Note: Currently not supported by Measurement Studio tools for Visual C++.
Help context for error.
Note: Currently not supported by Measurement Studio tools for Visual C++.
Displays error descriptions in a message box when set to FALSE (default value). It set to TRUE, the control does not display the Description parameter default values or any values you specify for Description.