VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Clear all the Values of the Text Box

by Vimal N Bhuptani (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: Visual Basic 5.0
Difficulty: Unknown Difficulty
Originally Published: Sat 28th July 2001
Date Added: Mon 8th February 2021
Rating: (1 Votes)

Clear all the Values of the Text Box

Rate Clear all the Values of the Text Box




Dim Ctl as Control

' Executing the For Loop

For Each Ctl in Me.Controls

    ' Checking whether the Control / Object is a Text Box

    If TypeOf Ctl is TextBox Then
       Ctl.Text = ""
    End If
Next

 

Download this snippet    Add to My Saved Code

Clear all the Values of the Text Box Comments

No comments have been posted about Clear all the Values of the Text Box. Why not be the first to post a comment about Clear all the Values of the Text Box.

Post your comment

Subject:
Message:
0/1000 characters