DreadPirate
Technical User
Greetings,
Simple problem, but it seems to be more complex than I am, apparently.
I'm trying to convert a number in a text box into an integer by using the Cint command. VB seems opposed to the idea; it keeps giving me "Type Mismatch" errors. Here's what I'm doing:
CityNo = CInt(CityNumber.Text)
CityNo + Miles = TotalNumber
The problem, apparently, is with the first line. But what it is is beyond me. I have declared CityNo as an integer (as well as miles and TotalNumber). Any help would be greatly appreciated.
Thanks.
{R}
Simple problem, but it seems to be more complex than I am, apparently.
I'm trying to convert a number in a text box into an integer by using the Cint command. VB seems opposed to the idea; it keeps giving me "Type Mismatch" errors. Here's what I'm doing:
CityNo = CInt(CityNumber.Text)
CityNo + Miles = TotalNumber
The problem, apparently, is with the first line. But what it is is beyond me. I have declared CityNo as an integer (as well as miles and TotalNumber). Any help would be greatly appreciated.
Thanks.
{R}