Option Explicit
Public Sub CloseAllForm()
Dim frm As Form
For Each frm In Forms
Unload frm
Next
End Sub
Contoh penggunaan procedure di atas:
Private Sub Form_Unload(Cancel As Integer)
CloseAllForm
End Sub
Sebuah catatan pribadi mengenai bahasa arab, syair arab klasik, Visual Basic 6.0, dan Blogging.
Option Explicit
Public Sub CloseAllForm()
Dim frm As Form
For Each frm In Forms
Unload frm
Next
End Sub
Private Sub Form_Unload(Cancel As Integer)
CloseAllForm
End Sub