Yesterday there was a request to make a visual basic source code that can be emptieddozens of textbox in a prompt. Sure, if we again make the program, with many controls in aform we also need a way so how can empty form with a rapid manner.
Here I am Make the source code by using For Each and Left functions.
|Mengosongkan banyak textbox dengan sedikit coding|
Please check below:
- Private Sub Command1_click()
- For each deny in me
- If typename(deny)="TextBox" then deny.Text=""
- End Sub