June 21, 2005
Imports System.Text.RegularExpressions
regex.replace(INPUT,"%","") 'Shared method
I can't quite remember the signature and the exact position of the input
part, but this is how to strip the % sign. You should be able to convert it
to double now. Hope this helps and have a great day!
--
Joseph Bittman
Microsoft Certified Application Developer
Web Site:
http://71.35.110.42
Dynamic IP -- Check here for future changes
"David A. Osborn" <do********@hotmail.com> wrote in message
news:un%te.91194$nG6.21524@attbi_s22...
I have a textbox that is getting input in the form of a percent ie.
"100.00%". How do I convert this to a double? If i do
System.Convert.ToDouble(MyVar) I get an exception. How do I strip the
percent sign off? (Also there may not be a % because the user may just
enter 100 or 100.00)