Try OpenEdge Now
skip to main content
Managing ABL Applications
R-code Features and Functions : R-code CRCs and procedure integrity : RCODE-INFO handle : Getting the r-code CRC
 
Getting the r-code CRC
To read the r-code CRC from an r-code file, first set the FILE-NAME attribute of the RCODE-INFO handle to the pathname of your r-code file. Then read the value of the CRC-VALUE attribute, as shown:
DEFINE VARIABLE rCRC AS INTEGER NO-UNDO.
ASSIGN
  RCODE-INFO:FILE-NAME = "sports/crcust.r"
  rCRC                 = RCODE-INFO:CRC-VALUE.
Note: The RCODE-INFO handle cannot read the r-code CRC from a session compile. For source (.p) procedures, the CRC-VALUE attribute returns the Unknown value (?).