Text To String Error;
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?
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.