"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:O2**************@TK2MSFTNGP11.phx.gbl...
In VB6, I did this: Public Function CallSub(ParamArray VarArg())
How do I do a similar thing in VB.Net?
--
TFWBWY...A
fwiw, just ran this through that "wizard"
VB6
'=============
Private Sub MySub(ParamArray VarArg())
Dim i As Integer
For i = 0 To UBound(VarArg)
Debug.Print VarArg(i)
Next
End Sub
'=============
VS05
'=============
Private Sub MySub(ParamArray ByVal VarArg() As Object)
Dim i As Short
For i = 0 To UBound(VarArg)
Debug.Print(VarArg(i))
Next
End Sub
'=============
Now wondering if ParamArray's as useless as it was in VB6 <g> Every time I
considered using ParamArray, I changed my mind (in favor of a real array)
for one reason or another. Especially with VB6 (as opposed to VB5 that
didn't support passing/recv'ing arrays as well as 6)
--
Ken Halter - MS-MVP-VB (visiting from VB6 world) -
http://www.vbsight.com
Please keep all discussions in the groups..