Home » Documentation » DataValidator

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

Name Description
IsAlpha  Returns true if the specified string argument is an alphabetic string, false otherwise.
Arguments:
(Value)
IsDateTime  Returns true if the specified string has been determined to be a valid date time, false otherwise.
Arguments:
(Value)
IsDouble  Returns true if the specified string has been determined to be a valid double, false otherwise.
Arguments:
(Value)
IsInt  Returns true if the specified string has been determined to be a valid integer, false otherwise.
Arguments:
(Value)
IsIPv4  Returns true if the specified string argument has been determined to be a valid IPv4 address, false otherwise.
Arguments:
(Value)
IsNumeric  Returns true if the specified string argument has been determined to be numeric, false otherwise.
Arguments:
(Value)
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.
Arguments:
(Value)
IsValidURL  Returns true if the specified string argument has been determined to be a valid URL, false otherwise.
Arguments:
(Value)
Length  Returns true if the specified string argument length is equal to the specified integer argument.
Arguments:
(Value, Length)
MaxLength  Returns true if the specified string argument length is less than or equal to the specified integer argument.
Arguments:
(Value, Length)
MinLength  Returns true if the specified string argument length is equal to or greater than the specified integer argument.
Arguments:
(Value, Length)
Are you a robot?
Your Email:
Create a Username:
Create a Password:
Forgot Password?
Validate Text: Captcha