what does vb.net mean by "expression expected"

user1944225 picture user1944225 · Jan 26, 2013 · Viewed 38.1k times · Source

i dont know what to put after the bracket of the list item class, so their is an error saying

expression expected

This is the code:

Dim NewEntry As New ListItem(CostOfGame & " " & Ps3Games & " " & GameID & " " & IsTheGameInStock & " " &)

Also, can you please explain to me what list item does in simple terms as i still dont understand it?

Answer

Edwin picture Edwin · Jan 26, 2013

You have an extra '&' at the end of your expression. It should just be:

Dim NewEntry As New ListItem(CostOfGame & " " & Ps3Games & " " & GameID & " " & IsTheGameInStock & " ") 

As to what a ListItem is and what it does, see the documentation. I suspect, though that an answer that you want is a little broader and beyond the scope of this site.