Namespace: Consultingwerk.Util
Class 
CompareHelper Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object

File:Compare
Purpose:Provides simplified comparision routines for ABL primitive
values
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sat Mar 14 22:40:05 CET 2015
Purpose: Constructor for the Compare class
Notes: Disallow instance creation



Top Method Summary
Options Name Purpose
+ LOGICAL IsNotNullOrEmpty (character) Compares if the passed in character string is not unknown value or empty
+ LOGICAL IsNotZeroOrNull (decimal) Compares if the passed in decimal value is not the unknown value or zero
+ LOGICAL IsNotZeroOrNull (int64) Compares if the passed in int64 value is not the unknown value or empty
+ LOGICAL IsNotZeroOrNull (integer) Compares if the passed in integer value is not the unknown value or empty
+ LOGICAL IsNullOrEmpty (character) Compares if the passed in character string is the unknown value or empty
+ LOGICAL IsZeroOrNull (decimal) Compares if the passed in decimal value is the unknown value or empty
+ LOGICAL IsZeroOrNull (int64) Compares if the passed in int64 value is the unknown value or empty
+ LOGICAL IsZeroOrNull (integer) Compares if the passed in integer value is the unknown value or empty

Top Constructor Summary
Options Name Purpose
# CompareHelper () Constructor for the Compare class


Method Detail
Top

PUBLIC LOGICAL IsNotNullOrEmpty (character)

Purpose: Compares if the passed in character string is not unknown value
or empty
Notes:

Parameters:
pcCharacter CHARACTER
The character to compare
Returns LOGICAL
True when the passed in character value is not ? or Empty
Top

PUBLIC LOGICAL IsNotZeroOrNull (decimal)

Purpose: Compares if the passed in decimal value is not the unknown value
or zero
Notes:

Parameters:
pdeValue DECIMAL
The decimal to compare
Returns LOGICAL
True when the passed in decimal value is ? or Empty
Top

PUBLIC LOGICAL IsNotZeroOrNull (int64)

Purpose: Compares if the passed in int64 value is not the unknown value
or empty
Notes:

Parameters:
piValue INT64
The int64 to compare
Returns LOGICAL
True when the passed in int64 value is ? or Empty
Top

PUBLIC LOGICAL IsNotZeroOrNull (integer)

Purpose: Compares if the passed in integer value is not the unknown value
or empty
Notes:

Parameters:
piValue INTEGER
The integer to compare
Returns LOGICAL
True when the passed in integer value is ? or Empty
Top

PUBLIC LOGICAL IsNullOrEmpty (character)

Purpose: Compares if the passed in character string is the unknown value
or empty
Notes:

Parameters:
pcCharacter CHARACTER
The character to compare
Returns LOGICAL
True when the passed in character value is ? or Empty
Top

PUBLIC LOGICAL IsZeroOrNull (decimal)

Purpose: Compares if the passed in decimal value is the unknown value
or empty
Notes:

Parameters:
pdeValue DECIMAL
The decimal to compare
Returns LOGICAL
True when the passed in decimal value is ? or Empty
Top

PUBLIC LOGICAL IsZeroOrNull (int64)

Purpose: Compares if the passed in int64 value is the unknown value
or empty
Notes:

Parameters:
piValue INT64
The int64 to compare
Returns LOGICAL
True when the passed in int64 value is ? or Empty
Top

PUBLIC LOGICAL IsZeroOrNull (integer)

Purpose: Compares if the passed in integer value is the unknown value
or empty
Notes:

Parameters:
piValue INTEGER
The integer to compare
Returns LOGICAL
True when the passed in integer value is ? or Empty


Constructor Detail
Top

PROTECTED CompareHelper ()

Purpose: Constructor for the Compare class
Notes: Disallow instance creation



©2006-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 06:16:31