ricardolb Posted June 27, 2017 Share Posted June 27, 2017 I'm opening all my forms in TabSheets, just like the UniGUI demo, but sometimes, inside another form I also open a form for search records and stuff, but, if this form is already open in a TabSheet, it won't do anything, is there a way I can check if this form is already open, so I can close the tabsheet and open the form modal. Thank you Quote Link to comment Share on other sites More sharing options...
RobYost Posted June 28, 2017 Share Posted June 28, 2017 I usually create my forms aForm = TmyForm.Create(self); when you do it this way you can check if (aForm = nil) then if you don't do it this way you can check if (aForm.Visible) then Quote Link to comment Share on other sites More sharing options...
ricardolb Posted June 29, 2017 Author Share Posted June 29, 2017 I'll try that, thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.