Chance1234
IS-IT--Management
Code:
private void button3_Click(object sender, EventArgs e)
{
string strip = "84;#Tim nTest;#57;#Diana Piece;#85;#Ian Acme;#88;#Matthew MadeUp";
for (int i = 57; i <= 127 ; i++)
{
strip = strip.Replace((char)i,''); //second argument here is the error
}
textBox3.Text = strip.ToString();
}
What I am trying to do is strip out all the characters except the # and the numbers. But I cant seem to get teh second argument for the replace function right. If i use a char code of a value no problems, but if i try, as in above I get an error.
Chance,
F, G + 1MSTG