Problem with recreating forms

I am seeing "Duplicate Component Name formname" when I create the same childform again. I am closing and freeing the former instance.

I have seen this in VCL with childforms because the default CloseAction is set to not free the forms. But I cant find such a property in TWebForm.

The reason I am closing them is that I may have up to 50 forms in this flowchart. And I didnt want to leave them all open (once created).

What have I done wrong?

From the OnClose event, you can set the parameter Action to caFree

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.