converting textlabel to double
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: converting textlabel to double

  1. #1
    Join Date
    Feb 2009
    Posts
    1

    converting textlabel to double

    I'm trying to convert the text string from a TextBox to a double by pressing a button
    I've found on the internet that this is done by:

    this->textBox1->text->ToDouble;

    Intellisense doesn't show ToDouble...

    When building I get an error:

    error C2039: 'ToDouble' : is not a member of 'System::String'

    private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
    this->textBox1->Text-ToDouble
    }

    How do I convert the string do a double?

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Wallisellen (ZH), Switzerland
    Posts
    17,544

    Re: converting textlabel to double

    Wrong forum.
    Victor Nijegorodov

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center