Retrieve Progress/OE version number

D.Cook

Member
Anyone know how to retrieve the Progress/OpenEdge version number? I was hoping to find a pre-processor name, but the best option I can find is parsing the 'version' file in the DLC directory.
I seem to recall there might be some undocumented pre-processor names.
 
While I'm here, here's a code sample for checking if the current version of Progress is high enough (where {1} is the required version):

Code:
if (if index(proversion, ".") eq 2 then "0" else "") + proversion lt "{1}" then
do:
   message "Cannot execute: Progress OpenEdge {1} or higher is required." view-as alert-box error.
   return.
end.
 
If you need to make the check at compile time you can do something like this:

Code:
&IF DECIMAL(SUBSTRING(PROVERSION,1,INDEX(PROVERSION,".") + 1)) >= 9.0
&THEN
/* conditional code goes here... */
&ENDIF
 
Back
Top