Zitat Zitat von kolisson
versuchts doch mal mit dem rotate befehl:
'The ROTATE statement preserves all the bits
'so for a byte when set to 128, after a ROTATE, LEFT , the value will
'be 1
Ja, das ist doof geschrieben in der Hilfe... Bei 128/1 klapps natürlich. Aber mit 11010000 kommt dann z.B. 10100001 raus!
ROTATE verschiebt die Bits einfach (cool für Lauflichter ;- ) )

Was du machen willst ist ein logisches NOT.
Versuche mal Variable1 = NOT Variable1