VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Procedure to clear all textboxes in a form

by Singin Gekko (2 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 4.0 (32-bit)
Difficulty: Unknown Difficulty
Originally Published: Fri 18th April 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Procedure to clear all textboxes in a form

Rate Procedure to clear all textboxes in a form



' Following code can be put 
' in a basic module

Public Sub ClearTextBoxes(frm As Form)
    Dim c As Control
    For Each c In frm
        If TypeOf c Is TextBox Then c.Text = ""
    Next c
End Sub


' Following is the calling code

ClearTextBoxes Me

' OR
Call ClearTextBoxes(FrmName)


Download this snippet    Add to My Saved Code

Procedure to clear all textboxes in a form Comments

No comments have been posted about Procedure to clear all textboxes in a form. Why not be the first to post a comment about Procedure to clear all textboxes in a form.

Post your comment

Subject:
Message:
0/1000 characters