$MOD_VERSION

Handle ProcScript modification functions as in previous versions.

$MOD_VERSION {=} V5.2 | V6.1 | V7.1 | V7.2

Defaults

Assignment file:

Any application assignment file

Section:

[SETTINGS]

Default value:

None

Description

$MOD_VERSION allows you to specify that the values of the ProcScript modification functions $occmod, $formmod, $formdbmod, and $fieldmod should be determined as they were in previous versions of Uniface. The options V6.1 and V7.1 are equivalent; both options are present to increase the documentation value of your assignment file.

Note:  The $MOD_VERSION setting provides a short-term solution for compatibility problems caused by the changes in the modification functions between versions. You are encouraged to adapt your applications to the current behavior as quickly as possible.

For the functions $occmod, $formmod, and $formdbmod, the table summarizes how each of the options available with $MOD_VERSION affects the values. (The function $occdbmod, which was introduced in V7.2, is included for completeness.)

Results of $occmod, $formmod, $occdbmod, and $formdbmod for different types of fields
  $occmod / $formmod $occdbmod / $formdbmod
Field is ... Entity is ... V5.2 V6.1 /

V7.1

V7.2 V5.2 V6.1/

V7.1

V7.2
Database Updatable, database 1 / 1 1 / 1 1 / 1 — / 1 — / 1 1 / 1
Non-updatable, database 1 / 1 1 / 1 1 / 1 — / 1 — / 0 0 / 0
Non-database Updatable, database 0 / 1 0 / 0 1 / 1 — / 0 — / 0 0 / 0
Non-updatable, database 0 / 1 0 / 0 1 / 1 — / 0 — / 0 0 / 0
Dummy Updatable, database 0 / 1 0 / 0 1 / 1 — / 0 — / 0 0 / 0
Non-updatable, database 0 / 1 0 / 0 1 / 1 — / 0 — / 0 0 / 0
Dummy 0 / 1 1 / 1 1 / 1 — / 0 — / 0 0 / 0

Since the introduction of Uniface 7.2, changes to a field that are made using the /init switch do not set $fieldmod. For earlier versions, $fieldmod is set for these cases.

$MOD_VERSION

 $MOD_VERSION V7.1

Related Topics