Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A question about arrays

Status
Not open for further replies.

Zoomy

Programmer
Aug 28, 2002
6
US
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"}


Scott
Programmer Analyst
<{{><
 
Hi Stnkyminky and Zoomy,
I believe the first one does not compile either, for the same reason.
Best regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top