VB.NET
This statement compiles just fine:
Dim NumbersList() As Integer = (12, 32, -3, 114, 543)
But this one will not:
Dim StringsList() As String = ("make", "it", "work", "please")
I get a ')' expected at the first comma, any ideas why?
Printable View
VB.NET
This statement compiles just fine:
Dim NumbersList() As Integer = (12, 32, -3, 114, 543)
But this one will not:
Dim StringsList() As String = ("make", "it", "work", "please")
I get a ')' expected at the first comma, any ideas why?
Post your question in the .Net Forum here.
try this:Quote:
Originally posted by ZoomyX
VB.NET
This statement compiles just fine:
Dim NumbersList() As Integer = (12, 32, -3, 114, 543)
But this one will not:
Dim StringsList() As String = ("make", "it", "work", "please")
I get a ')' expected at the first comma, any ideas why?
Dim StringsList() As String = {"make", "it", "work", "please"}
Changed the ordinary braces to curly braces.