getVersionInfo()

The function returns the current version information of WinCC OA.

Synopsis

anytype getVersionInfo( string key);

Parameters

Parameter Description
key Possible key values and there corresponding return values are:
  • VERSION - The version number as string, e.g. "3.19". Can also be stated as "version"
  • VERSION_DISP - The displayed version name as string, e.g. "3.19-SP1". Can also be stated as "display"
  • VERSION_NUMERIC - The version number as uint, e.g. 315000. Can also be stated as "numeric"
  • VERSION_PLATFORM - Returns the platform name as string, e.g. "Linux x86_64". Can also be stated as "platform".
  • major - The major version number as int, e.g. 3
  • minor - The minor version number as int, e.g. 15
  • patch - The patch version number as int, e.g. 17
  • numeric_full - Returns the full version number as int. The value is calculated as followed: major * 100000 + minor * 1000 + patch, e.g. 315001.
  • platform_subdir - The sub directory that is used inside of the bin/ and bin/widgets directory for the specific platform, e.g. "linux-itc".

Return value

Anytype; Depending on the stated key value. Can be either string, int or uint

Error

-

Description

The function returns the current version information of WinCC OA. The return values depend on the used key value and can be used to e.g. distinguish between patch, version (major or minor) or used platform.

Assignment

-

Availability

CTRL, UI