I am polling my printer port for inputs 10,11,12,13, and 15.
I was wondering which method would be faster?
This one:
_____________________________________________
Global pin(5) as boolean
Dim x as integer
'sub to read printer port
For x = 0 To 5: pin(x) = False: Next x
'code to read port and set pin(X) true or false
_____________________________________________
OR this one:
_____________________________________________
Global pin() as boolean
Dim x as integer
'sub to read printer port
Redim pin(5)
'code to read port and set pin(X) true or false
_____________________________________________
Thanks
I was wondering which method would be faster?
This one:
_____________________________________________
Global pin(5) as boolean
Dim x as integer
'sub to read printer port
For x = 0 To 5: pin(x) = False: Next x
'code to read port and set pin(X) true or false
_____________________________________________
OR this one:
_____________________________________________
Global pin() as boolean
Dim x as integer
'sub to read printer port
Redim pin(5)
'code to read port and set pin(X) true or false
_____________________________________________
Thanks