i have an array with 4 values:
string[] selectedObject;
how can i save all 4 values of array in string like:
string selectedObjects = "";
i need one string like this:
selectedObjects = "123; 132; 231; 132;";
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will produce the output
"123; 132; 231; 132"– If you really wanted another;at the end you could add this manually to have all bases covered:This will produce the right output for any
selectedObjectarray length, including zero.