Changing the form of a uidoc

Hi, I have a uidocument that is open. I want to change the form for this document, and then re-open it with the new form.

So, I change the form, close the uidocument, and then re-open it. However, the issue is that the uidoc.Close is not executed/effective until the script finishes… which is too late.

Does anybody know of any tricks?

Thanks in advance…

Subject: Try: Call uidoc.Close(True) / eom

Subject: Thank you.

Thanks for reminding me about that. Works well.