View Single Post
Old Jan 25th, 2008, 8:53 AM   #6
kewlgeye
Programmer
 
Join Date: Jan 2008
Posts: 53
Rep Power: 1 kewlgeye is on a distinguished road
Unhappy Re: Input Output Function Error

Quote:
Originally Posted by Ghost View Post
Dim cpaMaxDecimal As Decimal = CType(usersundayString, Decimal) - CType(cpaadminsundaycount, Decimal)

Is what you need. I'm a little drunk, but it looks good to me.
This is the error I am getting.

InvalidCastException was unhandled.
Conversion from string "" to type Decimal' is not valid

on the same line pointing to the same area "Ctype(cpaadminsundaycount, Decimal)

I'm stumped
kewlgeye is offline   Reply With Quote