Validate All Textbox Controls Without Control Arrays

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Beginning
Author:
Tom Scott

Version 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:

Code: