C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Interview   Jobs   Projects   Offshore Development    
Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing | Talk to Us |



My Profile

Gifts

Active Members
TodayLast 7 Days more...







Concatenation of array elements


Posted Date: 24 Mar 2008      Total Responses: 1

Posted By: sairam vegi       Member Level: Silver     Points: 2


i have arraylist with 100 names.i want concatenate all the names into one sting.waht is the code for that.



Responses

Author: Babu A    24 Mar 2008Member Level: GoldRating:     Points: 2
assume you have array like this
string[] strs = {"aa", "bb", ...};

//create temp variable to store concatenated value
string Test ="";
// use this loop

foreach (string s in strs )
{
Test += s;
}

now Test will contains, all concatenated values


Post Reply
You must Sign In to post a response.
Next : cannot create web application in dot net 2003?
Previous : populating datagridview from xml file
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design

it outsourcing

Contact Us    Privacy Policy    Terms Of Use