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

CASE OF mit String

proton
2007-04-16
2007-04-20
  • proton - 2007-04-16

    Hallo,

    gibt es eine Möglichkeit ein "CASE OF" mit Datentyp String zu machen? Scheint so weit nur mit Zahlenvariablen zu gehen.

     
  • Ralph Holz - 2007-04-16

    Einfache schnelle Antwort:

    Korrekt Case geht nur mit ganzzahligen Datentypen.

    Schau Dir mal die ENUMERATIONEN an vielleich hilft das!

    Gruß

    Ralph

     
  • proton - 2007-04-20

    das habe ich auch schon gemacht. ist aber vom Aufwand auch nicht besser, weil man vorher die Umwanldung von Script zu enum machen muss.

     

Log in to post a comment.