
06-10-2012, 06:36 AM
|
 |
Senior Contributor
Forum Leader * Expert *
|
|
Join Date: Apr 2005
Location: USA
Posts: 866
|
|
Just look at the documentation:
Code:
'Declaration
Public Function Invoke ( _
method As Delegate, _
ParamArray args As Object() _
) As Object
That "ParamArray" means that you can pass as many arguments as you wish, and they will automatically be placed in an array. That's what you did in your second code listing. Alternatively, you can explicitly create the array and pass it. That's what you did in your first code listing.
Quote:
|
Is it okay to use the "Text" keyword as a variable?
|
If you are asking if it's okay to use the Text variable as an argument, then yes, absolutely.
|
__________________
C# _VB.NET _
|