Forum Discussion
Does the object Aliases.IC.MDIForm1.MdiClient.ChartForm, actually exists?
Check the project settings for "On error:"
Does the object Aliases.IC.MDIForm1.MdiClient.ChartForm, actually exists?
Yes it does. There are multiple objects ('chartForm') that are opened, Using While Loop to close every single of them 1 by 1 until the object in question returns (VisibleOnScreen) false.
I will check on the project settings.
- rraghvani29 days ago
Champion Level 3
So it's a multiple document interface having a number of windows, and you are closing each window if they are opened i.e. Visible Equals True?
I'm assuming you are using a wild card for the name mapping of Aliases.IC.MDIForm1.MdiClient.ChartForm?
When the last window is closed, what is the value of Aliases.IC.MDIForm1.MdiClient.ChartForm.Exists?
- BD_Geoactive29 days agoContributor
well thats the mysterious bit. obviously, i couldn't access the ChartForm when they all are closed. dont know how it does it, but using exists property does work when compared to using visible. or visibelOnScreen.
- rraghvani29 days ago
Champion Level 3
An Object holds property values that you can access and check. But if the Object itself is null or undefined, it no longer exists in memory, so you cannot access its properties.
Once these three items have been removed, you can no longer access the Visible property, as the Object no longer exists.Almost all modern programming languages behave like this.