slicendice
Programmer
Hi
I have a very simple bit of code that is trying to do a CInt conversion on the numerical content of a textbox (i.e. make it an Int if a decimal has been specified). The line of code in question is:
txtMWMins(Index).Text = CStr(CInt(txtMWMins(Index).Text))
However I get a "type mismatch" error occurring and I'm not too sure why! I've tried just a simple type conversion using:
Dim x as Integer
x = CInt(txtMWMins(Index).Text)
but get exactly the same problem!
Thanks
I have a very simple bit of code that is trying to do a CInt conversion on the numerical content of a textbox (i.e. make it an Int if a decimal has been specified). The line of code in question is:
txtMWMins(Index).Text = CStr(CInt(txtMWMins(Index).Text))
However I get a "type mismatch" error occurring and I'm not too sure why! I've tried just a simple type conversion using:
Dim x as Integer
x = CInt(txtMWMins(Index).Text)
but get exactly the same problem!
Thanks