Previous Next

RCODE-INFO handle
A handle to a specific ABL r‑code file.
 
RCODE-INFO [ :attribute ]
attribute
Specifies an attribute of the RCODE-INFO handle.
Attributes
 
Example 
The following example prompts for the name of an r‑code file and returns its CRC code and the languages for which it is compiled:
 
DEFINE VARIABLE rcode-file  AS CHARACTER NO-UNDO FORMAT "x(60)" LABEL "File".
 
REPEAT:
  SET rcode-file WITH FRAME rc-info.
  RCODE-INFO:FILE-NAME = rcode-file.
  DISPLAY RCODE-INFO:CRC-VALUE LABEL "CRC"
    RCODE-INFO:LANGUAGES FORMAT "x(60)" LABEL "Languages"
    WITH FRAME rc-info SIDE-LABELS TITLE "R-code Check".
END.
Notes 
*
In Windows, the filename cannot contain characters outside of the non-Unicode code page. See OpenEdge Development: Internationalizing Applications for more information about Unicode and code pages.
*
*
To use the RCODE-INFO handle, you must first set the FILE-NAME attribute to the name of an r‑code file (with or without a .r or .p extension). If you do not provide a full pathname, ABL searches your PROPATH to find the file. You can then read the CRC-VALUE attribute and LANGUAGES attribute to get information on the file. If the r‑code file is not found, both LANGUAGES and CRC-VALUE are set to the Unknown value (?).
*
*
*
*
The DISPLAY-TYPE attribute holds a value of "GUI" for a graphical display, "TTY" for a character-mode display, or a blank string ("") for code that does not contain any display-specific statements. Use of this attribute allows developers to determine if the r-code contains statements that make it executable only in the same display environment on which it was compiled.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.