Conversion from the string to double is failing in visual studio 2017 However the same code is working visual studio 2015

  • Thread starter Thread starter samkumar768
  • Start date Start date
S

samkumar768

Guest
The below snippet of code is causing the problem .it's working absolutely fine in earlier version of VS like 2015 and 2012.

I thought i had some visual studio settings to restrict the explicit conversion so i have checked all possible config available in visual studio 2017 but i am not able to get it working.

the problem is that my existing code have lot of code where i am converting from string to double .since its a compatible string format with correct decimal values so it should be get convert into double.

any one face same kind of error in Visual studio 2017 ?

your input is highly appreciated ?


Dim result As String
Dim Values As String = "8.07017543859649"

result = CDbl(Values )

Continue reading...
 
Back
Top