BASCOM-AVR IDE Version : 1.11.8.3
Hallo,
ich habe bei der Übergabe von mehr als 2 Parametern Probleme. Konkret: Die einer SUB übergebenen Werte sind in dieser falsch.
Was ist da falsch ?Code:$regfile = "m16def.dat" $crystal = 4000000 $baud = 9600 Declare Sub Test(byval Para1 As Byte , Byval Para2 As Byte , Byval Para3 As Byte , Byval Para4 As Byte , Byval Para5 As Byte) Print Chr(27) ; "[2J"; Print "SUB Parameter Uebergabe" Call Test(11 , 22 , 33 , 44 , 55) End Sub Test(para1 As Byte , Para2 As Byte , Para3 As Byte , Para4 As Byte , Para5 As Byte) Print "Parameter 1:" + Str(para1) Print "Parameter 2:" + Str(para2) Print "Parameter 3:" + Str(para3) Print "Parameter 4:" + Str(para4) Print "Parameter 5:" + Str(para5) End Sub
Danke und Gruß







Zitieren

Lesezeichen