-
February 25th, 2009, 07:32 AM
#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?
-
February 25th, 2009, 07:48 AM
#2
Re: converting textlabel to double
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|