OpenPetra
Free Administration Software for Non-Profits
Ict.Common.Verification.TNumericalChecks Class Reference

Class for numerical verifications that are needed both on Server and Client side. More...

Static Public Member Functions

static TVerificationResult IsValidInteger (String AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a string represents a valid integer. A null value is accepted. More...
 
static TVerificationResult IsValidDouble (String AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a string represents a valid double or single number. A null value is accepted. More...
 
static TVerificationResult IsValidDecimal (String AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a string represents a valid decimal number. A null value is accepted. More...
 
static TVerificationResult IsPositiveInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an integer is greater than zero. A null value is accepted. More...
 
static TVerificationResult IsGreaterThanZero (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an integer/long is greater than zero More...
 
static TVerificationResult IsPositiveDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a double or single number is greater than zero. A null value is accepted. More...
 
static TVerificationResult IsPositiveDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a decimal number is greater than zero. A null value is accepted. More...
 
static TVerificationResult IsPositiveOrZeroInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an integer is greater or equal to zero. A null value is accepted. More...
 
static TVerificationResult IsPositiveOrZeroDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a double or single number is greater or equal to zero. A null value is accepted. More...
 
static TVerificationResult IsPositiveOrZeroDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a decimal number is greater or equal to zero. A null value is accepted. More...
 
static TVerificationResult IsNegativeInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an integer is less than zero. A null value is accepted. More...
 
static TVerificationResult IsNegativeDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a double or single number is less than zero. A null value is accepted. More...
 
static TVerificationResult IsNegativeDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a decimal number is less than zero. A null value is accepted. More...
 
static TVerificationResult IsNegativeOrZeroInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an integer is lesser or equal to zero. A null value is accepted. More...
 
static TVerificationResult IsNegativeOrZeroDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a double or single number is lesser or equal to zero. A null value is accepted. More...
 
static TVerificationResult IsNegativeOrZeroDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a decimal number is lesser or equal to zero. A null value is accepted. More...
 
static TVerificationResult IsNonZeroInteger (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an integer is non-zero. A null value is accepted. More...
 
static TVerificationResult IsNonZeroDouble (double? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a double or single number is non-zero. A null value is accepted. More...
 
static TVerificationResult IsNonZeroDecimal (decimal? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a decimal number is non-zero. A null value is accepted. More...
 
static TVerificationResult FirstLesserThanSecondInteger (Int64? AValue1, Int64? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether the first submitted integer number is smaller than the second submitted integer number. Null values are accepted. More...
 
static TVerificationResult FirstLesserThanSecondDouble (double? AValue1, double? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether the first submitted double or single number is smaller than the second submitted double or single number. Null values are accepted. More...
 
static TVerificationResult FirstLesserThanSecondDecimal (decimal? AValue1, decimal? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether the first submitted decimal number is smaller than the second submitted decimal number. Null values are accepted. More...
 
static TVerificationResult FirstLesserOrEqualThanSecondInteger (Int64? AValue1, Int64? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether the first submitted integer number is smaller than or equal to the second submitted integer number. Null values are accepted. More...
 
static TVerificationResult FirstLesserOrEqualThanSecondDouble (double? AValue1, double? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether the first submitted double or single number is smaller than or equal to the second submitted double or single number. Null values are accepted. More...
 
static TVerificationResult FirstLesserOrEqualThanSecondDecimal (decimal? AValue1, decimal? AValue2, string AFirstNumberDescription, string ASecondNumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether the first submitted decimal number is smaller than or equal to the second submitted decimal number. Null values are accepted. More...
 
static TVerificationResult IsInRange (Int64? AValue, Int64? ALowerLimit, Int64? AUpperLimit, string ANumberDescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether integer number is within a given range More...
 
static TVerificationResult IsNumberPrecisionNotExceeded (decimal? AValue, int APrecision, int AScale, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether a decimal's decimal digits and fractional digits are less or equal to the ones specified. A null value is accepted. More...
 

Detailed Description

Class for numerical verifications that are needed both on Server and Client side.

None of the data verifications in here must access the database since the Client doesn't have access to the database!

Member Function Documentation

◆ FirstLesserOrEqualThanSecondDecimal()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.FirstLesserOrEqualThanSecondDecimal ( decimal?  AValue1,
decimal?  AValue2,
string  AFirstNumberDescription,
string  ASecondNumberDescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether the first submitted decimal number is smaller than or equal to the second submitted decimal number. Null values are accepted.

Parameters
AValue1Decimal number.
AValue2Decimal number.
AFirstNumberDescriptionDescription what the number is about (for the error message).
ASecondNumberDescriptionDescription what the number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if validation succeeded, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses AFirstNumberDescription and ASecondNumberDescription .

◆ FirstLesserOrEqualThanSecondDouble()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.FirstLesserOrEqualThanSecondDouble ( double?  AValue1,
double?  AValue2,
string  AFirstNumberDescription,
string  ASecondNumberDescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether the first submitted double or single number is smaller than or equal to the second submitted double or single number. Null values are accepted.

Parameters
AValue1Double or single number.
AValue2Double or single number.
AFirstNumberDescriptionDescription what the number is about (for the error message).
ASecondNumberDescriptionDescription what the number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if validation succeeded, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses AFirstNumberDescription and ASecondNumberDescription .

◆ FirstLesserOrEqualThanSecondInteger()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.FirstLesserOrEqualThanSecondInteger ( Int64?  AValue1,
Int64?  AValue2,
string  AFirstNumberDescription,
string  ASecondNumberDescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether the first submitted integer number is smaller than or equal to the second submitted integer number. Null values are accepted.

Parameters
AValue1Integer number.
AValue2Integer number.
AFirstNumberDescriptionDescription what the number is about (for the error message).
ASecondNumberDescriptionDescription what the number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if validation succeeded, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses AFirstNumberDescription and ASecondNumberDescription .

◆ FirstLesserThanSecondDecimal()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.FirstLesserThanSecondDecimal ( decimal?  AValue1,
decimal?  AValue2,
string  AFirstNumberDescription,
string  ASecondNumberDescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether the first submitted decimal number is smaller than the second submitted decimal number. Null values are accepted.

Parameters
AValue1Decimal number.
AValue2Decimal number.
AFirstNumberDescriptionDescription what the number is about (for the error message).
ASecondNumberDescriptionDescription what the number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if validation succeeded, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses AFirstNumberDescription and ASecondNumberDescription .

◆ FirstLesserThanSecondDouble()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.FirstLesserThanSecondDouble ( double?  AValue1,
double?  AValue2,
string  AFirstNumberDescription,
string  ASecondNumberDescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether the first submitted double or single number is smaller than the second submitted double or single number. Null values are accepted.

Parameters
AValue1Double or single number.
AValue2Double or single number.
AFirstNumberDescriptionDescription what the number is about (for the error message).
ASecondNumberDescriptionDescription what the number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if validation succeeded, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses AFirstNumberDescription and ASecondNumberDescription .

◆ FirstLesserThanSecondInteger()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.FirstLesserThanSecondInteger ( Int64?  AValue1,
Int64?  AValue2,
string  AFirstNumberDescription,
string  ASecondNumberDescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether the first submitted integer number is smaller than the second submitted integer number. Null values are accepted.

Parameters
AValue1First integer number.
AValue2Second integer number.
AFirstNumberDescriptionDescription what the number is about (for the error message).
ASecondNumberDescriptionDescription what the number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if validation succeeded, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses AFirstNumberDescription and ASecondNumberDescription .

◆ IsGreaterThanZero()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsGreaterThanZero ( Int64?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether an integer/long is greater than zero

Parameters
AValueInteger number.
ADescriptionDescription what the integer number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid integer number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsInRange()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsInRange ( Int64?  AValue,
Int64?  ALowerLimit,
Int64?  AUpperLimit,
string  ANumberDescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether integer number is within a given range

Parameters
AValueInteger number.
ALowerLimitLower range limit.
AUpperLimitUpper range limit.
ANumberDescriptionDescription what the number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if validation succeeded, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ANumberDescription

◆ IsNegativeDecimal()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNegativeDecimal ( decimal?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a decimal number is less than zero. A null value is accepted.

Parameters
AValueDecimal number.
ADescriptionDescription what the decimal number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid decimal number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNegativeDouble()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNegativeDouble ( double?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a double or single number is less than zero. A null value is accepted.

Parameters
AValueDouble or single number.
ADescriptionDescription what the double or single number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid double or single number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNegativeInteger()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNegativeInteger ( Int64?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether an integer is less than zero. A null value is accepted.

Parameters
AValueInteger number.
ADescriptionDescription what the integer number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid integer number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNegativeOrZeroDecimal()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNegativeOrZeroDecimal ( decimal?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a decimal number is lesser or equal to zero. A null value is accepted.

Parameters
AValueDecimal number.
ADescriptionDescription what the decimal number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid decimal number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNegativeOrZeroDouble()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNegativeOrZeroDouble ( double?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a double or single number is lesser or equal to zero. A null value is accepted.

Parameters
AValueDouble or single number.
ADescriptionDescription what the double or single number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid double or single number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNegativeOrZeroInteger()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNegativeOrZeroInteger ( Int64?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether an integer is lesser or equal to zero. A null value is accepted.

Parameters
AValueInteger number.
ADescriptionDescription what the integer number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid integer number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNonZeroDecimal()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNonZeroDecimal ( decimal?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a decimal number is non-zero. A null value is accepted.

Parameters
AValueDecimal number.
ADescriptionDescription what the decimal number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid decimal number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNonZeroDouble()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNonZeroDouble ( double?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a double or single number is non-zero. A null value is accepted.

Parameters
AValueDouble or single number.
ADescriptionDescription what the double or single number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid double or single number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNonZeroInteger()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNonZeroInteger ( Int64?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether an integer is non-zero. A null value is accepted.

Parameters
AValueInteger number.
ADescriptionDescription what the integer number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid integer number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsNumberPrecisionNotExceeded()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsNumberPrecisionNotExceeded ( decimal?  AValue,
int  APrecision,
int  AScale,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a decimal's decimal digits and fractional digits are less or equal to the ones specified. A null value is accepted.

This Method can be used to check number formats as they are specified in petra.xml, e.g. "lenght=6", "decimals=2". - Set APrecision to 6 and AScale to 2 to validate this number format with this method.

Parameters
AValueDecimal number.
APrecisionThe total count of significant digits in the whole number, that is, the number of digits to both sides of the decimal point.
AScaleThe count of decimal digits in the fractional part, to the right of the decimal point.
ADescriptionDescription what the decimal number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a decimal number which number precision is according to APrecision and AScale , or if AValue is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsPositiveDecimal()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsPositiveDecimal ( decimal?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a decimal number is greater than zero. A null value is accepted.

Parameters
AValueDecimal number.
ADescriptionDescription what the decimal number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid decimal number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsPositiveDouble()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsPositiveDouble ( double?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a double or single number is greater than zero. A null value is accepted.

Parameters
AValueDouble or single number.
ADescriptionDescription what the double or single number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid double or single number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsPositiveInteger()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsPositiveInteger ( Int64?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether an integer is greater than zero. A null value is accepted.

Parameters
AValueInteger number.
ADescriptionDescription what the integer number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid integer number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsPositiveOrZeroDecimal()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsPositiveOrZeroDecimal ( decimal?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a decimal number is greater or equal to zero. A null value is accepted.

Parameters
AValueDecimal number.
ADescriptionDescription what the decimal number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid decimal number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsPositiveOrZeroDouble()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsPositiveOrZeroDouble ( double?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a double or single number is greater or equal to zero. A null value is accepted.

Parameters
AValueDouble or single number.
ADescriptionDescription what the double or single number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid double or single number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsPositiveOrZeroInteger()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsPositiveOrZeroInteger ( Int64?  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether an integer is greater or equal to zero. A null value is accepted.

Parameters
AValueInteger number.
ADescriptionDescription what the integer number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid integer number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsValidDecimal()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsValidDecimal ( String  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a string represents a valid decimal number. A null value is accepted.

Parameters
AValueString that should be checked.
ADescriptionDescription what the decimal number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid decimal number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

ADescription .

◆ IsValidDouble()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsValidDouble ( String  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a string represents a valid double or single number. A null value is accepted.

Parameters
AValueString that should be checked.
ADescriptionDescription what the double or single number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid double or single number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

◆ IsValidInteger()

static TVerificationResult Ict.Common.Verification.TNumericalChecks.IsValidInteger ( String  AValue,
String  ADescription,
object  AResultContext = null,
System.Data.DataColumn  AResultColumn = null 
)
inlinestatic

Checks whether a string represents a valid integer. A null value is accepted.

Parameters
AValueString that should be checked.
ADescriptionDescription what the integer number is about (for the error message).
AResultContextContext of verification (can be null).
AResultColumnWhich System.Data.DataColumn failed (can be null).
Returns
Null if AValue contains a valid integer number or is null, otherwise a TVerificationResult is returned that contains details about the problem, with a message that uses ADescription .

The documentation for this class was generated from the following file: