Hey, this is the first day I have ever done anything with Visual Basic and I have ran into an issue which I cant seem to fix.
I have declared a couple of variables like so:
I am also setting them to be used like so:
Dim intPlayerCount, intTypes As Integer
Then I am doing some math with it later on:
intPlayerCount = txtPlayerCount.Text
Then trying to set a label to show the answer, with something like this:
intPlayerCount = intPlayerCount * 64 + intTypes * 7
It would appear that the data coming from the text boxes are strings and when I try to do the math with them (which may be wrong also (in terms of syntax)) the program doesnt like it and crashes out.
lblTotal.Text = "Your total is: " & intTotalScore
Any advice here guys? do I NEED to convert the inputs?