I have many local variables for example : String a1,a2,a3,a4,a5,a6,a7,a8,a9,a10;
I need to declare them as empty string in String^ format.
If this string is in C#, It is possible to assign them as below :-
string Camnr, Klantnr, Ordernr, Bonnr, Volgnr;// and so on. Camnr = Klantnr = Ordernr = Bonnr = Volgnr = string.Empty;
But how should I declare them with String^ ??? If a single variable is there then the syntax would be
String^ a1= gcnew String(" ");
and if multiple variables declaration would be then like this :-
String^ a2= gcnew String(" "); String^ a3= gcnew String(" "); String^ a4= gcnew String(" ");
and so on.
This code will tend to look lengthy.Is there any better way to declare them?