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

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

Static Public Member Functions

static TVerificationResult IsValidIntegerTime (Int64? AValue, String ADescription, object AResultContext=null, System.Data.DataColumn AResultColumn=null)
 Checks whether an integer time is in the range 0..86399 More...
 

Detailed Description

Class for time 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

◆ IsValidIntegerTime()

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

Checks whether an integer time is in the range 0..86399

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 .

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