Consultor Eletrônico



Kbase 17667: PROVERSION : Progress/WebSpeed version - Portable code
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   08/11/1999
PROVERSION : Progress/WebSpeed version - Portable code

This document applies to: Progress client products
Version and Release Number: Progress V7 and above
WebSpeed 2.1 and above

INTRODUCTION:
=============

This knowledgebase entry describes the PROVERSION function and gives
some examples.

WHY YOU NEED TO KNOW THIS:
===========================

PROVERSION Function

Returns the specific version of PROGRESS you are running.
For example: 8.2B.
Returns the version and the text WebSpeed when is invoked in the same.
For example: 2.x (WebSpeed).

This function identifies which version is being used so that a single
version of a procedure can work differently under different versions.
Helps to have portable code between major Progress versions.

NOTE:
=====
The PROVERSION function is available since version 7, the text
WebSpeed is included since WebSpeed 2.x.


EXAMPLES:
=========

You can check the Progress version at compile time using a
preprocessor directive or at runtime using an expression.

1)
DISPLAY PROVERSION.

2)
&IF PROVERSION BEGINS "8.2" &THEN
/* Code for 8.2 */
&ELSIF PROVERSION BEGINS "8.1" &THEN
/* Code for 8.1 */
&ELSE
/* Code for others version */
&ENDIF

3)
&IF INDEX(PROVERSION,"WebSpeed") > 0 &THEN
/* Code for WebSpeed */
&ELSE
/* Code for PROGRESS GUI C/S or TTY */
&ENDIF

4)
IF KEYWORD("PROVERSION") = ?
THEN
/* Code for Progress version lower than 7 */.


REFERENCES TO WRITTEN DOCUMENTATION:
====================================

- Progress Language Reference
- Progress Online Help

Progress Software Technical Support Note # 17667