Question InvalidCastException?

Belgarion262

New member
Joined
Mar 4, 2011
Messages
2
Location
Welbeck DSFC
Programming Experience
Beginner
I've been creating an RPG game in vb.net and have stumbled across a problem with InvalidCastException. (screenshot attached)
i can't see anything that would cause this but i'm pretty tired right now and may have missed something obvious.:rolleyes:

thanks :)




(EDIT: Is it just me, or is the image not working?)
 

Attachments

  • New Bitmap Image (3).png
    New Bitmap Image (3).png
    49.4 KB · Views: 24
Last edited:
You're using the wrong operator; * operator means multiply, which means converting the operands to numbers, not possible with those strings of course. Use the & operator to concatenate strings.
 
thanks mate, i knew it had to be something simple like that ;)

i didn't even notice i'd done it, i think it must be because they're next to each other :p
 
Back
Top