here is my code:
# Function Blah(InputArray)

If TypeName(InputArray) Like "*()" Then
If TypeName(InputArray) = "Boolean()" then
Dim outputArray() As Boolean
Elseif TypeName(InputArray) = "Date()" then
Dim outputArray() As Date
End If
End if #

I get an error message on the Dim outputArray() As Date line: "Duplicate declaration in current scope"

How do I declare a variable as the same type as the input array--InputArray?

Thanks.

Edit / Delete Edit Post Quick reply to this message Reply Reply With Quote Reply With Quote Multi-Quote This Message