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

Purpose: Disallow instance creation
Notes:



Top Method Summary
Options Name Purpose
+ INTEGER ConvertFromString (character) Converts a character value to an integer value without raising an error when values do not fit into integer
+ INTEGER ConvertFromString (character, integer) Converts a character value to an integer value without raising an error when values do not fit into integer
+ LOGICAL IsNegative (integer) Verifies if the passed integer is negative
+ LOGICAL IsNotNullOrZero (integer) Verifies if the passed in integer value is not unknown value or 0
+ LOGICAL IsNullOrEmpty (integer) Verifies if the passed in integer value is the unknown value or 0
+ LOGICAL IsPositive (integer) Verifies if the passed integer is positive
+ CHARACTER NumericString (character) Returns the numeric part from the beginning of a character value

Top Constructor Summary
Options Name Purpose
- IntegerType () Disallow instance creation


Method Detail
Top

PUBLIC INTEGER ConvertFromString (character)

Purpose: Converts a character value to an integer value without raising an
error when values do not fit into integer
Notes:

Parameters:
pcValue CHARACTER
The Character value to convert
Returns INTEGER
The integer value
Top

PUBLIC INTEGER ConvertFromString (character, integer)

Purpose: Converts a character value to an integer value without raising an
error when values do not fit into integer
Notes:

Parameters:
pcValue CHARACTER
The Character value to convert
piDefault INTEGER
The default value to return when the character value does not return a valid integer
Returns INTEGER
The integer value
Top

PUBLIC LOGICAL IsNegative (integer)

Purpose: Verifies if the passed integer is negative
Notes:

Parameters:
piInteger INTEGER
The integer value to compare
Returns LOGICAL
True when the passed in integer value is less than 0
Top

PUBLIC LOGICAL IsNotNullOrZero (integer)

Purpose: Verifies if the passed in integer value is not unknown value
or 0
Notes:

Parameters:
piInteger INTEGER
The integer value to compare
Returns LOGICAL
True when the passed in integer value is not ? or 0
Top

PUBLIC LOGICAL IsNullOrEmpty (integer)

Purpose: Verifies if the passed in integer value is the unknown value
or 0
Notes:

Parameters:
piInteger INTEGER
The integer value to compare
Returns LOGICAL
True when the passed in character value is ? or 0
Top

PUBLIC LOGICAL IsPositive (integer)

Purpose: Verifies if the passed integer is positive
Notes:

Parameters:
piInteger INTEGER
The integer value to compare
Returns LOGICAL
True when the passed in integer value greater than 0
Top

PUBLIC CHARACTER NumericString (character)

Purpose: Returns the numeric part from the beginning of a character value
Notes:

Parameters:
pcString CHARACTER
The source string
Returns CHARACTER
The string that contains only the numbers from the beginning of the source string


Constructor Detail
Top

PRIVATE IntegerType ()

Purpose: Disallow instance creation
Notes:



©2006-2025 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       20.01.2025 18:14:59