locked
Using TryParse RRS feed

  • Question

  • Hello,
     I'm developing a application that needs to parse a float(float.TryParse), like this:
    float.TryParse(data[1], out fSize)
    But I'm getting a error saying that 'float' doesn't contains 'TryParse', but how can I use it in Windows Mobile applications?

    Thanks,
     Nathan Paulino Campos
    Thursday, November 12, 2009 9:47 PM

Answers

  • double temp;
    if(Double.TryParse(data[1], out temp) )
    {
       fSize = (float)temp;
    }

    Joel Ivory Johnson
    It takes all the running you can do to stay in one place.If you want to get somewhere else,you must try to run at least twice as fast as that.
    • Marked as answer by Nathan Campos Thursday, November 12, 2009 11:26 PM
    Thursday, November 12, 2009 11:15 PM

All replies