Advertisement
2002VB Custom Controls/ Forms/ Menus #18098

Forms Unloader

This code unloads all the forms of the program returning the resources back to the computer

AI

AI சுருக்கம்: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

மூலக் குறியீடு
original-source
Private Sub unloader(Optional ByVal ForceClose As Boolean = False)
  Dim i As Long
  
On Error Resume Next 
  For i = Forms.Count - 1 To 0 Step -1
    Unload Forms(i)
    Set Forms(i) = Nothing
    If Not ForceClose Then 
      If Forms.Count > i Then
        Exit Sub
      End If
    End If
  Next i
  
  If ForceClose Or (Forms.Count = 0) Then Close
  If ForceClose Or (Forms.Count > 0) Then End
  
End Sub
அசல் கருத்துகள் (3)
வேபேக் மெஷினிலிருந்து (Wayback Machine) மீட்டெடுக்கப்பட்டது