Using this menu entry you can save the currently selected procedure as an external procedure or an HDevelop program. A file selection dialog is opened where you can select the file type (see also section “File Types” on page 85):
The procedure is saved as an external procedure. If the target directory is not already configured in the external procedure directories (see Menu Edit ▹ Preferences, Directories), HDevelop will suggest adding the directory to the list. An example dialog is displayed in figure 6.4. If you click No, HDevelop will not be able to access the saved procedure unless the directory is later added to the external procedure locations manually.
This is one method to make an internal procedure external. If you do not change the name of the procedure, the internal procedure will conceal the external procedure.
If this file type is selected, an empty main procedure is added to the target file, and the procedure is added to the program as a local procedure.
This menu item is disabled if the main procedure is selected in the program window.