I stumbled over the predefined symbolical constants VERSION and VERSION_DISP in the Online Help Function recently and decided to use them right away to display this information in our UI for diagnostics purposes.
It would be nice to have a constant for the patch level too.
Is there any way of accessing that?
Reading WinCC OA Version and Patch number
- RudiKreiner
- Posts:198
- Joined: Mon May 16, 2011 2:10 pm
Reading WinCC OA Version and Patch number
- kilianvp
- Posts:443
- Joined: Fri Jan 16, 2015 10:29 am
Re: Reading WinCC OA Version and Patch number
I total agree but you can make your own const
Code: Select all
string getPatch()
{
dyn_string dsReadmes = getFileNames(WINCCOA_PATH,"ReadmeP*.txt");
string sReadmeFile = "ReadmeP";
string sText = ".txt";
string sZero = "0";
if ( dynlen(dsReadmes) )
{
this.visible = true;
dynSort(dsReadmes, true);
for ( int i = 1; i- schneebergera
- Posts:89
- Joined: Sun Apr 03, 2016 5:52 pm
Re: Reading WinCC OA Version and Patch number
Hello,
it's possible to check the version incl. patch-level via the mentioned code (about.pnl).
There is no constant for the patch-level existing.
The control constant "VERSION_DISP" shows not only the version but also the "service pack number" (eg. WinCC_OA 3.11).
Nowadays, we don't count on "service packs". So version "3.15" is correct because we implemented no "service pack" so far.
best regards,
Andreas
it's possible to check the version incl. patch-level via the mentioned code (about.pnl).
There is no constant for the patch-level existing.
The control constant "VERSION_DISP" shows not only the version but also the "service pack number" (eg. WinCC_OA 3.11).
Nowadays, we don't count on "service packs". So version "3.15" is correct because we implemented no "service pack" so far.
best regards,
Andreas
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: Reading WinCC OA Version and Patch number
Since 3.15 there is the new CTRL function getVersionInfo() with which you can get all sorts of version information
- schneebergera
- Posts:89
- Joined: Sun Apr 03, 2016 5:52 pm
Re: Reading WinCC OA Version and Patch number
good to know
please refer to WinCC_OA Help (3.15):
[CONTROL - Control functions - getVersionInfo()]
-->
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.
please refer to WinCC_OA Help (3.15):
[CONTROL - Control functions - getVersionInfo()]
-->
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.
- RudiKreiner
- Posts:198
- Joined: Mon May 16, 2011 2:10 pm
Re: Reading WinCC OA Version and Patch number
Super, thanks for the info.