FancyPrairie
Programmer
I have a routine (rtn1) in which I pass an array of controls to it. This routine, in turn, passes that array to a 2nd routine (rn2).
Example:
Note the difference in the 2 routines of how I have to reference the array. In the first routine I reference it as varctl(i). In the second routine I have to reference it as varctl(i)(0).
I need the 2nd routine to be able to reference it the same way. How do that?
Example:
Code:
Call rtn1 (Me, lstBox1)
Sub rtn1(frm as form, ParamArray varCtl() as variant)
Dim ctl as control
Dim i as integer
for i = 0 to ubound(varCtl)
set ctl = varctl(i)
next i
Call rtn2 (frm, varCtl)
End Sub
Sub rtn2(frm as form, ParamArray varCtl() as variant)
Dim ctl as control
Dim i as integer
for i = 0 to ubound(varCtl)
set ctl = varctl(i)(0)
next i
End Sub
I need the 2nd routine to be able to reference it the same way. How do that?