OWLNext 7.0
Borland's Object Windows Library for the modern age
|
Virtual member function TValidator::Error alerts the user that the contents of the edit control do not pass the validation check.
The standard validator objects generally present a simple message box notifying the user that the contents of the input are invalid and describing what proper input would be.
For example, the Error member function for a range validator object creates a message box indicating that the value in the edit control is not between the indicated minimum and maximum values.
Although most descendant validator objects override Error, you never call it directly. TValidator::Valid calls Error for you if TEdit::IsValid returns false, which is the only time Error needs to be called.