Post by JM "Poole" Melanson on Jul 25, 2020 14:58:54 GMT 1
Proc P_Close_All_Forms ' ' I was having problems with the IDE hanging after an attempt to close a program ' that happened to have multiple open forms. ' ' I know about setting all subordinate form's Owned property to TRUE so they are automatically ' closed when the main form is closed. But, for some reason, this did not work. ' ' The IDE would crash! ' ' After many trials, I succeeded in closing all the forms from the frm_Main_Close() ' event in the reverse order that they are listed in the App.Forms() collection. ' Local i%, cnt% = App.Forms.Count
For i = cnt To 1 Step -1 App.Forms(i).Close Next i
Did you know there is a Facebook group for GFA? 310 members and counting!