Click to See Complete Forum and Search --> : [RESOLVED] Returning a string out of a function


cad-JC
April 8th, 2008, 11:07 AM
Hi,

Can anyone help me and explain how to return a string from a function in a windows form application? I think this should be easy but I can't figure it out. Silly me
{
...
String^ Test;
String^ Test2 = "C:\TEMP\";
Test = functie(Test2;)
}

void functie(String^ Test2)
{
String^ Test3 = Test2 + "test.txt";
return Test3;
}

Any help is welcome.

Alex F
April 8th, 2008, 11:27 AM
String^ functie(String^ Test2)
{
String^ Test3 = Test2 + "test.txt";
return Test3;
}

cad-JC
April 8th, 2008, 02:15 PM
Txs alex,
I knew it would be easy but this easy. I tried several things similar like this but always got some errors.
Txs again for helping me out!