Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Killing Forms

  • Last UpdatedNov 12, 2025
  • 1 minute read
  • To destroy a loaded form, run the following command:

    kill !!MyForm

    The form is hidden and then its definition is destroyed so that it is then no longer known to PML. You cannot then access the form or its gadgets, members or methods (including its .show() method.

Normally you will not need to include the kill command within your AppWare.

If you re-show the form using the show command then the system will attempt to demand load the definition again. This is slow and expensive if you haven’t modified the definition so avoid it: use loadform !!MyForm and !!MyForm.show() instead.

If you execute a setup form !!MyForm... while the form !!MyForm already exists then it is killed and a new definition is started. This mechanism may be useful because it makes it possible to generate a form definition interactively from within your AppWare.

This can be very powerful but should be used with great care.

TitleResults for “How to create a CRG?”Also Available in