Strip/Remove Text From a String
Category:
String ManipulationType:
SnippetsDifficulty:
BeginningAuthor:
AnonymousVersion Compatibility: Visual Basic 6, Visual Basic 5
More information:
This function removes a string from a string. Then returns the remaining string. Example: Strip("555-55-55555","-") returns "555555555"
The effect of calling this function is the same as using Replace with "" as the third parameter, but this provides a shortcut (one less parameter) and also will work on versions below VB6 that don't support replace.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: