Goblin
12.07.2006, 14:46
Hallo!
Dim Pwm1 as WORD
Dim Urg as String*5
Dim Buffer(40) As Byte
wieso geht dann
Urg = Chr(buffer(2)) + Chr(buffer(3)) + Chr(buffer(4)) + Chr(buffer(5)) + Chr(buffer(6))
Pwm1 = Val(urg)
aber dies hier nicht:
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
Dim Pwm1 as WORD
Dim Urg as String*5
Dim Buffer(40) As Byte
wieso geht dann
Urg = Chr(buffer(2)) + Chr(buffer(3)) + Chr(buffer(4)) + Chr(buffer(5)) + Chr(buffer(6))
Pwm1 = Val(urg)
aber dies hier nicht:
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