im trying to loop thru a string one letter at a time and get rid of all letters aqnd symbols except "."

and for some reason the string.remove(x,x) doesnt work....
it just stays on the same letter and doesnt rip it out...


like say i put abc123def into my pricerange textbox it would lopp over and over removing "a" but not really removing it...

heres my code
I'm always using
Visual Studio 2003 c#
I'm always working on
web applications.

c# Code:
  1. bool ifd;
  2. string currentchar;
  3. string deletechar;//set inside of another method as the value which goes into the database...(but this isnt the prob ill get to this later)
  4.  
  5.  
  6. public void DelChar()
  7.         {
  8.             for(int i=0; i<txtPriceRangeSpecialAddNew.Text.ToString().Length;)
  9.             {  
  10.                 if (ifd == false)
  11.                 {
  12.                     currentchar=deletechar.Substring(i,1);
  13.                     ifd=true;
  14.                 }
  15.                 else
  16.                 {
  17.                 currentchar=currentchar;
  18.                 }
  19.                 int x=0;
  20.                 try
  21.                 {
  22.                     Convert.ToInt32(currentchar);
  23.                     deletechar ="$"+deletechar+currentchar;
  24.                     x++;
  25.                 }
  26.                 catch
  27.                 {
  28.                     if (currentchar==".")
  29.                     {
  30.                         x++;
  31.                     }
  32.                     else
  33.                     {
  34.                         try
  35.                         {
  36.                             Convert.ToInt32(currentchar);
  37.                             x++;
  38.                         }
  39.                         catch
  40.                         {
  41.                         currentchar.Remove(i,1);
  42.                         }
  43.                     }
  44.                 }
  45.             }
  46.  
  47.         }