J. Scott Elblein
Well-known member
I have this line of code:
intPagesCount is holding an integer, like 1, and strTotalPages holds a string like "34".
When I run it through a try catch, the error message on that line says this:
Input string was not in a correct format.
Can anyone tell me what I'm doing wrong? The strange thing is on a different routine I use the exact same code and it works great?
Thanks
VB.NET:
If Not intPagesCount = Convert.ToInt32(strTotalPages) Then 'do stuff
intPagesCount is holding an integer, like 1, and strTotalPages holds a string like "34".
When I run it through a try catch, the error message on that line says this:
Input string was not in a correct format.
Can anyone tell me what I'm doing wrong? The strange thing is on a different routine I use the exact same code and it works great?
Thanks