Saturday, 7 September 2013

"End of statement expected" when creating a string list

"End of statement expected" when creating a string list

I'm getting an "end of statement expected" error on the following code:
Public BlockedID As New List(Of String) From {"0", "2", "3", "4", "5", "6"}
The code works fine on my nephew's version of Visual studios so I assume
it's a VB.net framework specific problem. I already changed the target
framework to 3.5 to get rid of some other errors.
Any idea how I can fix this one?

No comments:

Post a Comment