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

File:IntegerType
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Jun 17 13:10:21 CEST 2012
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 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
+ CHARACTER NumericString (character) Returns the numeric part from the begining 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 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 CHARACTER NumericString (character)

Purpose: Returns the numeric part from the begining 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-2023 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       15.04.2024 05:51:54