|
Validation rule
|
Remarks
|
TLMDRequiredFieldValidator
|
checks if the validated control is not empty (contains a value)
|
Space characters are trimmed from both ends of the string value
|
TLMDRegExpValidator
|
checks if the value in the validated control matches the specified regular expression (e.g. email address, number in certain format etc.)
|
the regular expression in specified by the RegExp string property; IgnoreCase boolean property specifies if the regular expression is treated in case-sensitive or case-insensitive way. RegExp sould be a Perl-compatible regular expression (PCRE).
|
TLMDCompareValidator
|
compares the value in the validated control with the value in some reference control
|
the reference control is specified by the ReferenceControl property and has to support ILMDValidatedControl interface; the sign of the comparison result for successful validation is specified by the RefSign property and can be rsEqual, rsGreater, rsLess (TLMDRefSign enumeration). The type of the values being compared is defined by the ValueType property and can be vtNumber, vtString, vtDate (TLMDValueType enumeration). If the ValidateRefControl boolean property is set to True then with each validation of the target control the reference control is also validated which can result in error indication not only for the validated control but for the reference control as well
|
TLMDRangeValidator
|
checks if the value in the control is within the specified range; supports several data types
|
The lower and upper range limits are specified by the HighLimit and LowLimit properties respectively. The type of the values representing the range limits is defined by the ValueType property and can be vtNumber, vtString, vtDate (TLMDValueType enumeration).
|
TLMDTypedValidator descendants (somewhat more efficient that all-type ones because of explicitly-typed values used)
|
TLMDIntRangeValidator
|
checks if the integer value in the control is within the specified range
|
integer-typed version of the TLMDRangeValidator
|
TLMDFloatRangeValidator
|
checks if the floating point value in the control is within the specified range
|
float-typed version of the TLMDRangeValidator
|
TLMDStringRangeValidator
|
checks if the string value in the control is within the specified range
|
string-typed version of the TLMDRangeValidator
|
TLMDDateTimeRangeValidator
|
checks if the date/time value in the control is within the specified range
|
datetime-typed version of the TLMDRangeValidator
|