I am developing a database front end that makes use of Container Controls with various text boxes, buttons, etc corresponding to different operations and tables. When the user switches operations I need to close the current CC before embedding the new one.
In order to determine whether a CC is open/visible/in use, I have a corresponding boolean global variable that is set to False when the CC is closed and True when embedded.
Question: Is there a better way of determining whether a CC is open? Just seems a bit messy with so many global variables. I can’t identify a CC property that corresponds. If I check visible status, the program crashes if the CC has not yet been embedded/used.
Regards - Keir