Validate All Textbox Controls Without Control Arrays
Category:
Forms and ControlsType:
SnippetsDifficulty:
BeginningAuthor:
Tom ScottVersion Compatibility: Visual Basic 6
More information:
This a small modification on Patrick Lockefeer's code, (http://www.freevbcode.com/admin/Admin.asp?ID=7514), to clear all textboxes. This time it checks that all the textboxes in a form are complete. If they are all complete it returns true, if any are incomplete it returns false. As with the original code, it is done without control arrays.
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: