So ich habe das jetzt probiert . Hier mal ein ausschnitt:

If W >= 400 And W < 600 Then Portc = &B11100000
End If
If W >= 600 And W < 800 Then Portc = &B11110000
End If
If W >= 800 And W < 1000 Then Portc = &B11111000
End If
If W >= 900 And W < 1000 Then Portc = &B11111100
End If

aber "irgend wie" bekomme ich von Bascom den error 7 und 28 warum ?

mfg