I'm trying to create a program that takes input from the input box and then sends it to a textbox as a formatCurrency decimal. Whenever the loop ends, I get an error, "Input String was not in a correct format". Anybody know how to fix this?
Dim strTextBox As String
Dim decItemPrice As Decimal
>>1
Step through your code, checking to see if the inputs are as you expect. Note the exact line that the error occurs on. If you still can't figure it out knowing the exact input on the exact line, post that information here, for summary mocking etc.
Name:
Anonymous2007-12-04 16:37
LOL.
Name:
Anonymous2007-12-04 16:40
The error occurs on line 7 --> decItemPrice = Convert.ToDecimal(strTextBox)
All calculations occur as expected, but I get an error.
Name:
Anonymous2007-12-04 16:55
>>6
And what is the value of strTextBox at this point?