Namespace: Consultingwerk.Framework
Class 
NotEmptyInputValidator Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.Framework.ICharacterInputValidator, Consultingwerk.Framework.IDateInputValidator, Consultingwerk.Framework.IDecimalInputValidator, Consultingwerk.Framework.IIntegerInputValidator, Consultingwerk.Framework.ILogicalInputValidator

File:NotEmptyInputValidator
Purpose:Performs input validation for CHARACTER, DATE, DECIMAL,
INTEGER and LOGICAL input prompt values for not empty
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Feb 18 00:10:20 CET 2012
Notes:Not empty is interpreted as not ? and not the data type
default value (exception is LOGICAL)
Purpose: Validates a CHARACTER value
Notes: Returns FALSE when the value is the empty string or ?



Top Method Summary
Options Name Purpose
+ LOGICAL ValidateCharacterValue (character) Validates a CHARACTER value
+ LOGICAL ValidateDateValue (date) Validates a DATE value
+ LOGICAL ValidateDecimalValue (decimal) Validates a DECIMAL value
+ LOGICAL ValidateIntegerValue (integer) Validates an INTEGER value
+ LOGICAL ValidateLogicalValue (logical) Validates an LOGICAL value


Method Detail
Top

PUBLIC LOGICAL ValidateCharacterValue (character)

Purpose: Validates a CHARACTER value
Notes: Returns FALSE when the value is the empty string or ?

Parameters:
pcValue CHARACTER
The CHARACTER value to validate
Returns LOGICAL
TRUE when the validation is passed, otherwise FALSE
Top

PUBLIC LOGICAL ValidateDateValue (date)

Purpose: Validates a DATE value
Notes: Returns FALSE when the value is ? .

Parameters:
pdtValue DATE
The DATE value to validate
Returns LOGICAL
TRUE when the validation is passed, otherwise FALSE
Top

PUBLIC LOGICAL ValidateDecimalValue (decimal)

Purpose: Validates a DECIMAL value
Notes: Returns TRUE when the value is not zero and not ?

Parameters:
pdeValue DECIMAL
The DECIMAL value to validate
Returns LOGICAL
TRUE when the validation is passed, otherwise FALSE
Top

PUBLIC LOGICAL ValidateIntegerValue (integer)

Purpose: Validates an INTEGER value
Notes: Returns TRUE when the value is not zero and not ?

Parameters:
piValue INTEGER
The INTEGER value to validate
Returns LOGICAL
TRUE when the validation is passed, otherwise FALSE
Top

PUBLIC LOGICAL ValidateLogicalValue (logical)

Purpose: Validates an LOGICAL value
Notes: Returns TRUE when the value is not ?

Parameters:
plValue LOGICAL
The LOGICAL value to validate
Returns LOGICAL
TRUE when the validation is passed, otherwise FALSE


©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       08.12.2024 12:59:09