Return Numeric Values From Any String
Category:
String ManipulationType:
SnippetsDifficulty:
BeginningAuthor: Anonymous
Version Compatibility: Visual Basic 6
More information:
This function returns only the numeric values from any given string. Simply pass the function a string to strip all non-numeric values. A string of "ABC123;4-567" returns 1234567. This function takes advantage of the Mid, Len and IsNumeric functions.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: