String.insert problem
I am trying to trim s3 off the end of stringToSplit. It splits into the array ok but when i call
string.insert() it simply doesn't add anything to newString.
here is the code:
string stringToSplit = "s1/s2/s3";
string[] stringArray = stringToSplit.Split('/');
string newString = "";
for(int y = 0;y != stringArray.Length - 1;y++)
{
newString.Insert(newString.Length,stringArray[y].ToString());
}

mreister5 reputationPosted Nov 29, 2003, 10:51 PM EST
Mahesh ChandRank #1 · 393.3K reputationPosted Dec 1, 2003, 3:37 AM EST
prasad.narwadkar7 reputationPosted Dec 3, 2003, 12:32 AM EST
sacrespRank #1,944 · 754 reputationPosted Dec 5, 2003, 11:47 AM EST
tsuman_inRank #6,374 · 268 reputationPosted Dec 6, 2003, 4:04 AM EST
sacrespRank #1,944 · 754 reputationPosted Dec 6, 2003, 5:19 AM EST