If I have a app where I want multiple instances of the same window, is it bad practice to not save references to those instances as properties somewhere?
I have no need to access anything on those windows from the main window, so do I need to keep references around that I need to clean up when the windows are closed?
However, it will list every window of any type, including dialog boxes that are open etc.
You would have to do something like
if App.WindowAt( n ) IsA MyWindowClass then
// You have one of your 'Document' windows
end if
There’s also an App.Windows iterable, you can use like this:
For each ThisWindow as DesktopWindow in App.Windows
If ThisWindow IsA MyWindowClass Then
MyWindowClass(ThisWindow).SomeMethodOrPropertySpecificMyWindowClass
End If
Next