Selerix Developer Tools
StripNonNumerics(String) Method






Selerix.Foundation Assembly > Selerix.Foundation.Data Namespace > Utils Class > StripNonNumerics Method : StripNonNumerics(String) Method
String that may contain non-numeric characters
Utility function that removes all non-numeric characters from a string and returns just the numbers. This is used when storing SSN's, ZIP Codes, etc.
Syntax
'Declaration
 
Public Overloads Shared Function StripNonNumerics( _
   ByVal strIN As String _
) As String
'Usage
 
Dim strIN As String
Dim value As String
 
value = Utils.StripNonNumerics(strIN)
public static string StripNonNumerics( 
   string strIN
)
public function StripNonNumerics( 
    strIN: String
): String; static; 
public static function StripNonNumerics( 
   strIN : String
) : String;
public: static string* StripNonNumerics( 
   string* strIN
) 
public:
static String^ StripNonNumerics( 
   String^ strIN
) 

Parameters

strIN
String that may contain non-numeric characters

Return Value

String containing only the numeric characters from the input string
See Also

Reference

Utils Class
Utils Members
Overload List