Einzelnen Beitrag anzeigen

Clane
(Gast)

n/a Beiträge
 
#1

Problemt mit einer if-Abfrage

  Alt 15. Aug 2005, 07:58
also ich habe folgendes programmiert

if not command = 'shutdownand not command = 'lockwstthen showmessage(msg) der sinn:: wenn command nich = shutdown ist und gleichzeitig aber auch nich = lockwst ist soll eine shwomessage angezeigt werden

mein compiler mäckert aber und zwar das hier

Zitat:
[Error] Unit1.pas(46): E2015 Operator not applicable to this operand type
[Error] Unit1.pas(46): E2015 Operator not applicable to this operand type
[Warning] Unit1.pas(46): W1023 Comparing signed and unsigned types - widened both operands
[Error] Unit1.pas(46): E2010 Incompatible types: 'string' and 'Boolean'
[Fatal Error] Server.dpr(5): F2063 Could not compile used unit 'Unit1.pas'
  Mit Zitat antworten Zitat