Overload : Param Array vs Array

I have an overloaded method where I can pass various datatypes in the method signature…
One of these accepts a ParamArray

[code]
Public Sub myMethody(index as Integer,paramArray values() As String)

[code]

and I call it like

myMethod(3,"A","B","C")

which works just fine

but now I’d like to create another overload that accepts a “normal” array as well

[code]
Public Sub myMethody(index as Integer, values() As String)

[code]

and I’d like to call it this way

myMethod(3,anArray)

However if I do it this way… I get “there is more than one item with this name …”

I would like to keep all the signatures is a consistent format if possible

ParamArray values As String you don’t need the () after values and this will allow you to have the two different methods…

Public Sub myMethody(index as Integer, paramArray values As String) Public Sub myMethody(index as Integer, values() As String)

Thanks… part of it was I called the stupid thing incorrectly as well :frowning: