Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Variable Compilerversion

Nina
2017-01-04
2017-01-04
  • Nina - 2017-01-04

    Gibt es eine Lib / Funktion / Konstante in der die Compilerversion zur Laufzeit abgefragt werden kann?

     
  • eschwellinger

    eschwellinger - 2017-01-04

    Hi,

    ja sowas gibt's:

    seit 3.5 SP5 gibt’s es folgende Konstante:
    ver := __SYSTEM.Constants.CompilerVersion;

    Alternativ kann man die Compilerversion auch in Pragma’s prüfen:
    {IF COMPILERVERSION(<=, '3.5.5.20')}
    …

    Grüße
    Edwin

     
  • Nina - 2017-01-04

    Perfekt, Danke!

     

Log in to post a comment.