String Validation: IsAlphabetical, IsAlphaNumeric, and IsNumericOnly

Category:
String Manipulation
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
There are three functions here: One to check if a string contains only alphabetical characters, another to check if a string contains only alphabetical or numeric characters and a third to check if a string contains numeric characters only.

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

Declarations:

Code: