OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Lookup Validator Class

TLookupValidator is an abstract class that compares entered values with a list of acceptable values to determine validity.

TLookupValidator introduces the virtual member function TLookupValidator::Lookup. By default, Lookup returns true. Derived classes should override Lookup to compare the parameter with a list of items, returning true if a match is found.

TLookupValidator overrides TLookupValidator::IsValid to return true only if Lookup returns true. In derived classes you should not override IsValid; you should instead override Lookup.

TStringLookupValidator class is an instance class based on TLookupValidator.

See Also