function ExtractChars(sSource, sValidChars) As String
|
Extracts specified characters (sValidChars) from the string sSource.
Parameters
| • | sSource ... String expression from which specified characters are returned. |
| • | sValidChars ... String expression. Valid characters that can be extracted. |
Example:
Dim s, s2
s = "This is number 22.3"
s2 = ExtractChars(s, "0123456789,.")
' returns s2 = "22.3"
|
|