Text Validation Demo

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

Version Compatibility: Visual Basic 6

More information:
This demo uses the mid and isNumeric functions to break apart and validate sections of a string. The selstart and sellength properties are used to position the cursor and highlight the invalid portion of the string for editing. Instructions included.

Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the .zip file from your local drive using WinZip or a comparable program to view the contents.

Download validtxt.zip