B
BK
Consider the following code:
Dim temp As String = Me.txtAmount.Text
Dim nonNumerics As String
nonNumerics = "$,"
temp = temp.Trim(nonNumerics.ToCharArray)
If txtAmount.Text contains "$1,000.00", shouldn't the
temp.Trim(nonNumerics.ToCharArray) strip out the comman (,)? It strips
out the dollar ($) sign, but not the comma. I need to pull out any
nonnumeric characters from the text so that "$1,000.00" becomes
"1000.00", any other ideas?
Dim temp As String = Me.txtAmount.Text
Dim nonNumerics As String
nonNumerics = "$,"
temp = temp.Trim(nonNumerics.ToCharArray)
If txtAmount.Text contains "$1,000.00", shouldn't the
temp.Trim(nonNumerics.ToCharArray) strip out the comman (,)? It strips
out the dollar ($) sign, but not the comma. I need to pull out any
nonnumeric characters from the text so that "$1,000.00" becomes
"1000.00", any other ideas?