Covert String

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tssutha
    New Member
    • Jan 2008
    • 5

    Covert String

    hey
    i want to convert the text from textbox to double
    i used
    double.Parse(te xtBox.Text);
    but there is an Exception
    "Input text format is not correct"

    can anyone help me to sort out this?
    i could not resolve this?
  • kenobewan
    Recognized Expert Specialist
    • Dec 2006
    • 4871

    #2
    Depends on the value of the input, Convert.ToDoubl e() raises fewer exceptions. HTH.

    Comment

    • Sameerlucky
      New Member
      • Feb 2008
      • 6

      #3
      Hi,

      U can use the Convert class
      (convert.todoub le) to convert the string to a double.

      Sameer

      Comment

      Working...