eduardosuruagy Posted August 1, 2013 Share Posted August 1, 2013 Is to check if a form has been created example: if Assigned(Form) then ShowMessage('Ok'); Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted August 1, 2013 Author Share Posted August 1, 2013 Need to know if a form has been created... Quote Link to comment Share on other sites More sharing options...
mhmda Posted August 1, 2013 Share Posted August 1, 2013 hi, You may create forms manually: procedure TMainForm.lblClick(Sender: TObject); var frm:Tfrm2;//your form begin frm := Tfrm2.Create(UniApplication); frm.ShowModal(); end; Or you can use client events with ajaxrequest (to run server side code) or regular js code to run client side code. Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted August 1, 2013 Author Share Posted August 1, 2013 More need to know if a particular form was created Quote Link to comment Share on other sites More sharing options...
mhmda Posted August 1, 2013 Share Posted August 1, 2013 Can you specify for what reason? Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted August 2, 2013 Share Posted August 2, 2013 if UniMainModule.GetFormInstance(TUniForm1, False)<>nil thenbegin // Form is already createdend; You can use that. 1 Quote Link to comment Share on other sites More sharing options...
eduardosuruagy Posted August 2, 2013 Author Share Posted August 2, 2013 Thanks for the trouble Quote Link to comment Share on other sites More sharing options...
TRodrigues Posted March 16, 2018 Share Posted March 16, 2018 if UniMainModule.GetFormInstance(TUniForm1, False)<>nil then begin // Form is already created end; You can use that. Thanks 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.