TWarningEvent type
|  |
Unit
QDB
Declaration
TWarningEvent = TNotifyEvent;
Description
Warning events are paired with corresponding exceptions. If no handler is assigned for these events an exception is raised instead of the warning event. If you want to avoid the exception you must assign a handler for the warning. In the simplest case this handler would do nothing.
The choice between these responses depends upon whether you want to centralize your code in an event handler or use try ... except blocks throughout your code. Both can be useful.
The warning events (with their corresponding exceptions) are:
WarnNoData EQDBNoData
WarnOutOfBounds EQDBOutOfBounds
WarnReadOnly EQDBReadOnly