Posts by s98samman
Using Microsoft Visual Basic Express 2010
This is the code i used:
Dim b As Integer = TextBox1.Text
Dim c As Integer = TextBox2.Text
Dim a As Integer = b * c
MsgBox(a
Why does this visual basic code not work and how do i fix it to make it work? It is supposed to multiply any two numbers I input into the text boxes but whenever I 'start debugging', it says:
"Conversion from string "" to type 'Integer' is not valid." and it highlights 'As Integer = TextBox1.Text' (part of first line of text)
Ive been trying to figure out why it wont work for a while now. Please help! And please be detailed in answer.
Thanks
s98samman
Newbie Poster
1 post since May 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
© 2013 DaniWeb® LLC
Page rendered in 0.0295 seconds
using 2.45MB