Previous Next

PROVERSION function
Returns the version of ABL, or release of OpenEdge, you are running.
Note:
The PROVERSION function returns the version or release number as a character string. If you do not convert the returned character values to integer values (and strip off any letters) before sorting multiple return values, the values will not sort as expected. For example, the OpenEdge 10.0 release sorts before the Progress 9.1 version.
Syntax 
 
PROVERSION
In OpenEdge releases starting with OpenEdge 11, the value returned is a character string of period-separated significant digits in the following form, starting at zero (0):
 
Syntax 
MM.EE.SS.HH[Beta] 
MM
Major version number, starting at 11 and increasing by 1 for each Major version.
EE
Enhancement version number, starting at 0 and increasing by 1 for each Enhancement version within a Major version.
SS
Service Pack version number, starting at 0 and increasing by 1 for each Service Pack version within an Enhancement version.
HH
Hot Fix version number, starting at 0 and increasing by 1 for each Hot Fix version within a Service Pack version.
Beta
Added for a Beta release.
For example, the value returned for first OpenEdge 11 release is "11.0.0.0", and the value returned for the Beta of this release is "11.0.0.0Beta".
Example 
The following example displays your current ABL version or OpenEdge release:
 
MESSAGE "You are currently running Version/Release" PROVERSION.
Notes 
*
The PROVERSION function is not supported in Progress versions earlier than 7. If you want to test whether a procedure is running under an earlier version, you can use the KEYWORD function to determine whether PROVERSION is a keyword in that version. For example:
 
IF KEYWORD("PROVERSION") = ? THEN /* Lower than Version 7. */.
After you have determined that PROVERSION is available in the current version, then you can call a subroutine to invoke PROVERSION.
*
See also 
DBVERSION function, PROGRESS function

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