getPatchVersion

getPatchVersion(major: Integer output;
                minor: Integer output;
                build: Integer output;
                patch: Integer output);

The getPatchVersion method of the DbFile class returns the patch version numbers for the system files _ jadeapp.bin, _ jadedef.bin, _sysdef.bin, _sysdev.bin, _sysgui.bin, _sysint.bin, _system.bin, _systools.bin, and _sysxrf.bin.

The patch version numbers are assigned when a system file is built by Jade Software Corporation to address an issue with the JADE product. The patches are available for download by customers who have a support contract with Jade Software Corporation. Use this method to determine whether a patch has been applied.

Although the method can be executed against user database files (with a .dat extension), the values of the major, minor, build, and patch parameters that are output are always zero (0) for these non-system files.

The following example shows the use of the getPatchVersion method.

vars
    db          : JadeDatabaseAdmin;
    systemFiles : DbFileArray;
    file        : DbFile;
    major       : Integer;
    minor       : Integer;
    build       : Integer;
    patch       : Integer;
begin
    create db transient;
    create systemFiles transient;
    db.getDbFiles(DbFile.Kind_System, systemFiles);
    foreach file in systemFiles do
        file.getPatchVersion(major, minor, build, patch);
        write file.getName() & ": " & major.String & "." & minor.String
                             & "."  & build.String & "." & patch.String;
    endforeach;
epilog
    delete systemFiles;
    delete db;
end;

The following output results from executing the example method.

_system: 7.1.03.031
_sysxrf: 7.1.03.031
_sysgui: 7.1.03.031
_sysint: 7.1.03.031
_sysdev: 7.1.03.031
_jadeapp: 7.1.03.031
_jadedef: 7.1.03.031
_systools: 7.1.03.031
_sysdef: 7.1.03.031