Einzelnen Beitrag anzeigen

Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#7

AW: Enumerationen zu Symbolen auflösen

  Alt 6. Apr 2011, 16:33
Du darfst keine Zahlen verwenden. Warum genau das so ist, weiß ich leider nicht.

Also anstatt:
Delphi-Quellcode:
TWMParameter = (wpPort = -1, wpUser = -2, wpFallID = -3, wpFzFID = -4, wpSitzungsID = -5, wpAnaID = -6,
    wpUserRoles = -7, wpHandle = -8)
das hier
Delphi-Quellcode:
TWMParameter = (wpPort, wpUser, wpFallID, wpFzFID, wpSitzungsID, wpAnaID,
    wpUserRoles, wpHandle)
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat