03-10-2020, 09:00 PM
if you Release the current form just before you show another\new form - you will always have only 1 form.
like :
Release;
TfrmMyEditForm.Create(WebApplication).Show;
if you want to Release the top\current form, and you don't know which one it is (like in a menu, or a global "ShowForm" procedure etc'), then you can use :
// Release the current form
TIWAppForm(WebApplication.ActiveForm).Release;
don't forget to add IWAppForm to the Uses.
like :
Release;
TfrmMyEditForm.Create(WebApplication).Show;
if you want to Release the top\current form, and you don't know which one it is (like in a menu, or a global "ShowForm" procedure etc'), then you can use :
// Release the current form
TIWAppForm(WebApplication.ActiveForm).Release;
don't forget to add IWAppForm to the Uses.

