I want to put several string-fields together to one big string-field.
Something like that
How can I realise that?Code:string[] str1;
string[] str2;
string[] erg;
erg = str1 +str2;
Thanks a lot
Knauzer
Printable View
I want to put several string-fields together to one big string-field.
Something like that
How can I realise that?Code:string[] str1;
string[] str2;
string[] erg;
erg = str1 +str2;
Thanks a lot
Knauzer
Greetings,
take a look at the System.Array class. The following code should work:
Code:string[] str1;
string[] str2;
// Fill str1 and str2 here...
string[] erg = new string[str1.Length + str2.Length];
Array.Copy(str1, erg, str1.Length);
Array.Copy(str2, 0, erg, str1.Length, str2.Length);