Temperature conversion program in visual basic studio

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vbfrnd
    New Member
    • Aug 2007
    • 1

    Temperature conversion program in visual basic studio

    I need to write a program where I have to convert a temp provided by user to celcius or farenheit and vice versa. I am using text boxes to get the temp in degrees but when I am trying to convert the string to double by CDbl it is showing error while debugging..
    I will be thankful If anyone can provide answer..
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by vbfrnd
    I need to write a program where I have to convert a temp provided by user to celcius or farenheit and vice versa. I am using text boxes to get the temp in degrees but when I am trying to convert the string to double by CDbl it is showing error while debugging..
    I will be thankful If anyone can provide answer..
    I think you need to show us the code. There's certainly no reason why you can't convert a string to a double, assuming it contains reasonable data at the time.

    Of course, I suppose it depends on what you mean by "convert the string". I assume you are placing the output of the conversion in a double variable, not back in the string variable?

    Comment

    Working...