Option Explicit
Public Sub ClearAllTextBoxes(frmClearMe As Form)
Dim txt As Control
For Each txt In frmClearMe
If TypeOf txt Is TextBox Then txt.Text = ""
Next
End Sub
Private Sub Command1_Click()
ClearAllTextBoxes Me
End Sub
Sebuah catatan pribadi mengenai bahasa arab, syair arab klasik, Visual Basic 6.0, dan Blogging.
Option Explicit
Public Sub ClearAllTextBoxes(frmClearMe As Form)
Dim txt As Control
For Each txt In frmClearMe
If TypeOf txt Is TextBox Then txt.Text = ""
Next
End Sub
Private Sub Command1_Click()
ClearAllTextBoxes Me
End Sub