Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does vb.net mean by "expression expected"

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?

like image 604
user1944225 Avatar asked Dec 26 '22 10:12

user1944225


2 Answers

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.

like image 127
Edwin Avatar answered Jan 08 '23 17:01

Edwin


You have an extra ampersand in there (the last one):

... IsTheGameInStock & " " &)
like image 43
chue x Avatar answered Jan 08 '23 17:01

chue x