Hallo!
Code:
Dim Pwm1 as WORD
Dim Urg as String*5
Dim Buffer(40) As Byte
wieso geht dann
Code:
Urg = Chr(buffer(2)) + Chr(buffer(3)) + Chr(buffer(4)) + Chr(buffer(5)) + Chr(buffer(6))
Pwm1 = Val(urg)
aber dies hier nicht:
Code:
Pwm1 = Val(chr(buffer(2)) + Chr(buffer(3)) + Chr(buffer(4)) + Chr(buffer(5)) + Chr(buffer(6))))
?? Bei letzterem gibt er 2 Fehler:
Error : 129 Line : 59 ( or ) missing [PWM1 = VAL(CHR(BUFFER(2)) + CHR(BUFFER(3)) + CHR(BUFFER(4)) + CHR(BUFFER(5)) + CHR(BUFFER(6))))] , in File : Blaaaaaah
Error : 35 Line : 59 3 parameters expected , in File : Blaaaaah
Lesezeichen