
Originally Posted by
dilettante
Well, a better question might be why the parameter is declared ByRef instead of ByVal.
Assuming we have an array of controls/buttons.
Code:
Private Sub Command1_Click(Index As Integer)
End Sub
and wanted to click x button by passing the mBox variable: Command1_Click mBox
Ideally the Buttons are only a small bunch, so didn't want to make the mBox variable an Integer/wasting memory.
I'll either, use cByte(mBox) to pass the argument or easier to just declare mBox as an Integer i guess.