Tuesday, 11 June 2013
How to Add strings of the Array in Single String
string[] strarr = { opt1,opt2,opt3,opt4,opt5};
for (int i = 0; i <= strarr.Length - 1; i++)
{
if (strarr[i] != "")
{
if (options == "")
{
options = strarr[i];
}
else
{
options += "," + strarr[i];
}
}
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment