CodeItBetter Programming Another VB Programming Blog

How to Remove all numeric characters from a string

Posted on January 4, 2009
1
2
3
4
5
6
7
8
9
10
11
12
'String Manipulation - How to Remove all numeric characters from a string
Public Function RemoveNumeric(ByVal strString As String)
    'Remove all numeric from a string
    Dim intCount As Integer
    For intCount = 0 To 9
        strString = Replace(strString, CStr(intCount), "")
    Next intCount
    RemoveNumeric = strString
End Function
 
'How can I call this function:
'Msgbox RemoveNumeric("s7d8ddf")
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.