by Bashar Lulu (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Tue 8th May 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)
A "Clear Screen" function to clear all your textboxes and comboboxes and checkboxes. Generic code that will work with any form. Using ONLY 6
'If you use this code, please email me saying so [email protected]
Dim I as Integer
For I = 0 to Me.Controls.Count-1
If TypeOf Me.Controls(I) Is TextBox Then Me.Controls(I).Text = ""
If TypeOf Me.Controls(I) Is ComboBox Then Me.Controls(I).ListIndex = -1
If TypeOf Me.Controls(I) Is CheckBox Then Me.Controls(I).Value = 0
Next
End Sub
No comments have been posted about A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t. Why not be the first to post a comment about A Clear Screen function to clear all your textboxes and comboboxes and checkboxes. Generic code t.