I have a problem with a convert.ToDouble and I don't find the answer on the net, stackOverFlow, etc...
I try to convert this string value "7,8" (same pb with another : "4,84232") to double.
Here is my code :
Dim result As Double
Dim Line as String = "Test = 4,84232"
Dim LineArray() As String = Line.Split("="c)
Select Case LineArray(0).Trim
Case "Test"
result = Convert.ToDouble(LineArray(1).Trim)
'this line return a System.OverflowException: Value was either too large or too small for a Double.
Case "xxx"
...
End Select
I don't understand the error "Value was either too large or too small for a Double."
I Try to change decimal caracter ".", return a format error but not this one !!
Can you please help me ? Thanks a lot !