Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Can anyone plz tell me how to convert string to double?

i am entering a value in size column with datatype varchar and the value as 2.5x3.5 .its getting inserted in database but showing error in the below line.

Me.SortTableAdapter.Insert(ComboBox1.Text, ComboBox2.Text, TextBox3.Text, TextBox4.Text, TextBox5.Text, TextBox6.Text, TextBox7.Text, DateTimePicker1.Value)

the error showing is conversion from string 2.5x3.5 to double not possible
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900