DataValidator
The DataValidator object is very useful for doing validation of such data as e-mail and ip addresses as well as data type checking.
Methods
|
IsAlpha
|
Returns true if the specified string argument is an alphabetic string, false otherwise.
|
|
IsDateTime
|
Returns true if the specified string has been determined to be a valid date time, false otherwise.
|
|
IsDouble
|
Returns true if the specified string has been determined to be a valid double, false otherwise.
|
|
IsInt
|
Returns true if the specified string has been determined to be a valid integer, false otherwise.
|
|
IsIPv4
|
Returns true if the specified string argument has been determined to be a valid IPv4 address, false otherwise.
|
|
IsNumeric
|
Returns true if the specified string argument has been determined to be numeric, false otherwise.
|
|
IsPhone
|
Returns true if the specified string argument has been determined to be a valid U.S. telephone number, false otherwise.
Arguments:
(Value, CountryCode)
(Value)
|
|
IsPostalCode
|
Returns true if the specified string argument matches the postal code format of the specified country code argument, false otherwise.
Arguments:
(Value, CountryCode)
(Value)
|
|
IsValidEmail
|
Returns true if the specified string argument has been determined to be a valid e-mail address, false otherwise.
|
|
IsValidURL
|
Returns true if the specified string argument has been determined to be a valid URL, false otherwise.
|
|
Length
|
Returns true if the specified string argument length is equal to the specified integer argument.
|
|
MaxLength
|
Returns true if the specified string argument length is less than or equal to the specified integer argument.
|
|
MinLength
|
Returns true if the specified string argument length is equal to or greater than the specified integer argument.
|
|