I am looping through a DockSite closing Tabbed Document panels but the Docksite's panel count doesn't change.
I am using DockSite.Panels[idx].Close to close each panel.
Closing seems to work but my loop overruns because it is using PanelCount = 0 to terminate the loop.
Comments