what does vb.net mean by "expression expected"

39,045

Solution 1

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.

Solution 2

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

... IsTheGameInStock & " " &)
Share:
39,045
user1944225
Author by

user1944225

Updated on July 05, 2022

Comments

  • user1944225
    user1944225 almost 2 years

    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?