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

File:SessionHelper
Syntax:Static methods only, Protected constructor to disallow
instance creation
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Sun Aug 08 21:32:44 CEST 2010



Top Method Summary
Options Name Purpose
+ LOGICAL AllowsCompile () Returns if the current session allows compilation of ABL source code
+ CHARACTER CurrentDirectory () Returns the current working directory
+ CHARACTER CurrentMethodName () Returns the name of the current method of the caller
+ CHARACTER ExecutablePath () Returns the name of the current Progress Executable
+ CHARACTER FullVersionString () Returns the Progress Version (incl. Service Pack Level)
+ Consultingwerk.DateFormat GetDateFormat () Returns the current session date format
+ Consultingwerk.NumericFormat GetNumericFormat () Returns the current session numeric format
+ CHARACTER GetPatchLevel () Reads the Version file to see if there is a patch level
+ INTEGER ProcessBitness () Returns the "bitness" of the current process (32 / 64 bit)
+ DECIMAL ProVersionNumeric () Returns a numeric representation of the progress runtime version
+ SetDateFormat (DateFormat) Sets the Sessions date format
+ SetDefaultDateFormat () Sets the ABL default date format (mdy-1950)
+ SetDefaultNumericFormat () Sets the ABL default numeric format (AMERICAN)
+ SetNumericFormat (NumericFormat) Sets the Sessions numeric format
+ CHARACTER StartupParameters () Returns the startup parameters of the current Progress session

Top Constructor Summary
Options Name Purpose
# SessionHelper () Protected default constructor.

Top Property Summary
Options Name Purpose
+ CHARACTER AssembliesDirectory Returns the Assemblies Directory
+ CHARACTER AssembliesFullPath Returns the Assemblies Directory as a full path name
+ CHARACTER DLC Returns the DLC path value
+ CHARACTER PROMSGS Returns the PROMSGS value


Method Detail
Top

PUBLIC LOGICAL AllowsCompile ()

Purpose: Returns if the current session allows compilation of ABL source code
Notes: Compiles a non existing .p file (random file name) and tests the
error message.

Returns LOGICAL
Logical value indicating if the current session allows compilation
Top

PUBLIC CHARACTER CurrentDirectory ()

Purpose: Returns the current working directory
Notes:

Returns CHARACTER
The current working directory
Top

PUBLIC CHARACTER CurrentMethodName ()

Purpose: Returns the name of the current method of the caller
Notes: Returns the first entry by space of PROGRAM-NAME(2)

Returns CHARACTER
The name of the current method of the caller
Top

PUBLIC CHARACTER ExecutablePath ()

Purpose: Returns the name of the current Progress Executable
Notes: Uses System.Environment:CommandLine

Returns CHARACTER
The path to the current executable
Top

PUBLIC CHARACTER FullVersionString ()

Purpose: Returns the Progress Version (incl. Service Pack Level)
Notes: From src/adecomm/_about.p

Returns CHARACTER
The full progress version string
Top

PUBLIC Consultingwerk.DateFormat GetDateFormat ()

Purpose: Returns the current session date format
Notes:

Returns Consultingwerk.DateFormat
The Consultingwerk.DateFormat with the current session Settings
Top

PUBLIC Consultingwerk.NumericFormat GetNumericFormat ()

Purpose: Returns the current session numeric format
Notes:

Returns Consultingwerk.NumericFormat
The Consultingwerk.NumericFormat with the current session Settings
Top

PUBLIC CHARACTER GetPatchLevel ()

Purpose: Reads the Version file to see if there is a patch level
Notes: From src/adecomm/_about.p

Returns CHARACTER
The current patch level
Top

PUBLIC INTEGER ProcessBitness ()

Purpose: Returns the "bitness" of the current process (32 / 64 bit)
Notes:

Returns INTEGER
32 or 64 depending on the current Process process
Top

PUBLIC DECIMAL ProVersionNumeric ()

Purpose: Returns a numeric representation of the progress runtime version
Notes: The return value is built using the major version before the comma
and the minor version behind the comma

Returns DECIMAL
The numeric representation of the progress runtime version, e.g. 10,2 or 11,1
Top

PUBLIC SetDateFormat (DateFormat)

Purpose: Sets the Sessions date format
Notes:

Parameters:
poDateFormat Consultingwerk.DateFormat
The DateFormat object with the settings for the current session
Top

PUBLIC SetDefaultDateFormat ()

Purpose: Sets the ABL default date format (mdy-1950)
Notes:

Top

PUBLIC SetDefaultNumericFormat ()

Purpose: Sets the ABL default numeric format (AMERICAN)
Notes:

Top

PUBLIC SetNumericFormat (NumericFormat)

Purpose: Sets the Sessions numeric format
Notes:

Parameters:
poNumericFormat Consultingwerk.NumericFormat
The NumericFormat object with the settings for the current session
Top

PUBLIC CHARACTER StartupParameters ()

Purpose: Returns the startup parameters of the current Progress session
Notes: Uses System.Environment:CommandLine

Returns CHARACTER
The list of session startup parameters


Constructor Detail
Top

PROTECTED SessionHelper ()

Purpose: Protected default constructor.
Notes: There's no need to create instances of the helper classes



Property Detail
Top

PUBLIC CHARACTER AssembliesDirectory

Purpose: Returns the Assemblies Directory
Notes: Usually the -assemblies parameter

Returns CHARACTER
Top

PUBLIC CHARACTER AssembliesFullPath

Purpose: Returns the Assemblies Directory as a full path name
Notes: Usually the -assemblies parameter, resolved using System.IO.DirectoryInfo

Returns CHARACTER
Top

PUBLIC CHARACTER DLC

Purpose: Returns the DLC path value
Notes: Reads -zdlc Startup Parameter or the current progress.ini file or
registry branch

Returns CHARACTER
Top

PUBLIC CHARACTER PROMSGS

Purpose: Returns the PROMSGS value
Notes:

Returns CHARACTER


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:46:48