Greetings everyone,
This is my first post, so I hope I don't break any rules by mistake...
I am an experienced programmer trying to learn VB.NET. The problem I'm having is that it seems like strings have to be initialized differently than other types and I don't know what I'm doing wrong.
Can anyone identify the problem in this bit of code, and show me how to fix? I've commented the line causing trouble.
Thanks,
Bill
Public Class Class1
Private intNum() As Integer
Private dateString() As String
Public Sub New(ByRef s As String())
intNum(s.Length - 1) = New Integer 'No error.
dateString(s.Length - 1) = New String 'Overload resolution failed because no accessible 'New' accepts this number of arguments.
End Sub
End Class