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'); 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... 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. 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 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? 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 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 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now