Top Method Summary
Options Name Purpose
Consultingwerk.Util.RcodeInfo.RcodeInfo GetRcodeInfo (character) Returns an RcodeInfo object for a program
ParseRcode (character, RcodeInfo) Reads the rcode to set the RcodeVersion, CrcValue, IsClass and SignatureValue property values

Top Constructor Summary
Options Name Purpose
RcodeInfoHelper () Static constructor
RcodeInfoHelper () Default constructor for RcodeInfoHelper

Top Property Summary
Options Name Purpose
INTEGER OpenEdgeVersion


Method Detail
Top

Consultingwerk.Util.RcodeInfo.RcodeInfo GetRcodeInfo (character)

Purpose: Returns an RcodeInfo object for a program
Notes: Throws an exception if the extension is not one of .r, .cls, .p or .w
The FileName property is set to the name of the r-code file: the
passed-in value for a .r file, otherwise the passed-in value with
the extension replaced by .r (FileHelper:ReplaceFileExtension, which
also converts backslashes into forward slashes, so Foo\Bar.cls
returns Foo/Bar.r).
If the r-code file does not exist, an exception is raised. If the
file does not contain r-code (smaller than the r-code header or
without the r-code magic number), the RcodeVersion and CrcValue
values are set to ? (SCL-5964). A file that starts with the r-code
magic number but has an unsupported r-code version raises an
InvalidValueException, a truncated r-code file raises an error

Parameters:
pcFileName CHARACTER
The name of the program, either as source or r-code
Returns Consultingwerk.Util.RcodeInfo.RcodeInfo
An RcodeInfo instance representing the program
Top

ParseRcode (character, RcodeInfo)

Purpose: Reads the rcode to set the RcodeVersion, CrcValue, IsClass and SignatureValue
property values
Notes: SCL-5964: A file that is smaller than the r-code header or that does
not start with the r-code magic number is not r-code, RcodeVersion
and CrcValue are set to ? then. The byte order of the r-code is
taken from the magic number, so r-code compiled on a big-endian
platform is read correctly on a little-endian platform and vice versa

Parameters:
pcFileName CHARACTER
the full file name of the rcode file
poRcodeInfo Consultingwerk.Util.RcodeInfo.RcodeInfo
The reference to the RcodeInfo instance to populate values


Constructor Detail
Top

STATIC RcodeInfoHelper ()

Purpose: Static constructor
Notes:

Top

RcodeInfoHelper ()

Purpose: Default constructor for RcodeInfoHelper
Notes:



Property Detail
Top

INTEGER OpenEdgeVersion


Returns INTEGER


©2006-2026 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       10.10.2026 15:35:51