I wonder how it is possible to retreive a string from a function that is generating this string.
How is it possible to get the string "SendThis" when presssing the button1 in this case and declare it to getgenerateString ?
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e)
{
String^ getgenerateString = ""; //How to get the string "SendThis" here ?
}
void generateString()
{
String^ sendThisString = "SendThis";
}