Strip Alpha Characters From a Given String

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic 6

More information:
Though this function is designed specific to the author's needs, this snippet allows you to input a string and remove all non numeric characters. It currently works with up to 10 Characters, but is easily extended to be dynamic.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: