Download HDevelop User`s Manual
Transcript
2.3.7 Menu ’Procedures’ 47 item has the same effect as the button Interface in the program window (compare section 2.4.3 on page 65). 2.3.7.3 Procedures . Delete Current 2.3.7.4 Procedures . Delete All Unused All procedures that cannot be reached by any procedure call from the main procedure are deleted from the program. If the current procedure is among the deleted procedures, the main procedure becomes the current procedure. 2.3.7.5 Procedures . Copy Selecting this menu item opens a dialog with which it is possible to copy existing procedures (see figure 2.28). The dialog offers a combo box in which you can select the procedure that is to be copied, either by typing the procedure name in the text field or by selecting a procedure from the combo box list, which contains all procedures in the program. In the target text field the name of the target procedure can be entered. Activating the Copy button creates a copy of the source procedure and adds it to the current program. Cancel dismisses the dialog. Figure 2.28: Copy procedures. 2.3.7.6 Procedures . Save Current As HDevelop allows you to save or export the current procedure to a file. A file selection dialog similar to to the one of File . SaveAs (see section 2.3.3.6 on page 18) is opened and after selecting a file, the current procedure is saved together with all procedures that can be called directly or indirectly from the procedure. If the selected file format is of type HDevelop, an empty main procedure is added to the file. Note that if the selected file format corresponds to one of the supported HDevelop export languages C, C++, or VB, the exported file will not contain a main or similar function, and the exported file will not work as a standalone application. If the current procedure is the main procedure Procedures . Save Current As has the same effect as File . Save As. GUI The current procedure is deleted from the program and the main procedure becomes the current procedure. All calls to the procedure in the current program are replaced by comments. This item is disabled if the current procedure has a procedure call on the call stack or is the main procedure.