Previous Topic Next topic Print topic


&OPSYS-MAJOR|MINOR-VER

These functions contain the major and minor version numbers of the operating system executing the MFG.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.

Syntax:

&OPSYS-MAJOR-VER
&OPSYS-MINOR-VER

Aliases:

&opsys-major-ver     &Opsys-Major-Ver
&OPSYSMAJORVER
&opsysmajorver       &OpsysMajorVer&opsys-minor-ver &Opsys-Minor-Ver 
&opsysminorver       &OpsysMinorVer
&OPSYSMINORVER

Examples:

For code that depends on the version of the operating system platform where the generator runs, you could code the following.

% IF &OPSYS-MAJOR-VER = "5"
    % IF &OPSYS-MINOR-VER = "1"
        %* Logic for generating under Version 5.1
    % ELSE-IF &OPSYS-MINOR-VER = "5"
        %* Logic for generating under Version 5.5
    % END
% END

When executing under Windows NT version 3.5, MFG generates:

&OPSYS-MINOR-VER = "5"
Previous Topic Next topic Print topic