Im trying to build up a string using substrings, and if there are more than one substring seperate them with a comma.
The maximum number of possible substrings is 7
Below is an example of how i get the string value
if (Convert.ToInt32(dr["country_england"]) == 1)
{
strEng = "England";
}
the final string will be :
strAreas = strEngland + strWales + strScotland etc
what would be the best way to build up the string, and to seperate them with a comma if there is more than one substring .
Any help would be greatly appreciated, Thanks.
The maximum number of possible substrings is 7
Below is an example of how i get the string value
if (Convert.ToInt32(dr["country_england"]) == 1)
{
strEng = "England";
}
the final string will be :
strAreas = strEngland + strWales + strScotland etc
what would be the best way to build up the string, and to seperate them with a comma if there is more than one substring .
Any help would be greatly appreciated, Thanks.