Hallo
was bedeuten denn diese Bytes in der Sub?
Declare Sub Test(b1 As Byte , Byval B2 As Byte)

Wo liegt denn der Unterschied wenn ich die Sub declariere oder wenn ich gleich gosub schreibe.

ich verstehe nicht ganz was dieses Beispielprogramm so richtig macht.
warum declarieren die B1 und B2?

Code:
Dim A As Byte , B As Byte                      'dimension some variables
Declare Sub Test(b1 As Byte , Byval B2 As Byte)'declare the SUB program
A = 65                                         'assign a value to variable A
Call Test(a , 5)                               'call test with parameter A and constant
Test A , 5                                     'alternative call
Print A                                        'now print the new value
End

Sub Test(b1 As Byte , Byval B2 As Byte)        'use the same variable names as  'the declared one
Print B1                                       'print it
Print Bcd(b2)
B1 = 10                                        'reassign the variable
B2 = 15                                        'reassign the variable
End Sub