ParamArray

mutant said:
ParamArray is used to accept an undefined number of arguments which will later be converted into an array.
:)

Example

Sub clear(ByVal ParamArray obj() As Object)

For icount As Integer = 0 To obj.GetUpperBound(0)
obj(icount).text = ""
Next


End Sub

You can now pass as many objects as you want and clear their text fields.
 
Back
Top