Just found an interesting situation here.....
Assuming we have this simple Sub:
I'm assuming that the brackets is changing the variable type to a varient ?Code:Private Sub simpleTest(index As Integer) MsgBox index, vbOKOnly End Sub Private Sub Form_Load() Dim mBox As Byte simpleTest mBox '//This gives a byRef error as the mBox variable is a Byte and expecting an Integer. simpleTest (mBox) '//This in brackets however, seems ok End Sub






Reply With Quote
