Text To String Error;
Jun 11, 2013 at 12:05pm
Can anybody give me an easy solution to this problem:
1 2 3
|
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
String number1 = this->textBox1->Text;
}
| |
I want the text in '
textbox1' to save to '
string number1'. Does anyone have a text to standard string convertion?
Jun 11, 2013 at 1:06pm
Ok this solution seems to be viable and compiles with no errors:
1 2 3
|
private: System::Void btnadd_Click(System::Object^ sender, System::EventArgs^ e) {
String ^ number1;
number1 = this->textBox1->Text; }
| |
Could someone exsplain to me what the difference is?
Topic archived. No new replies allowed.