![]() |
![]() |
12 |
![]() |
Merge
The Merge option
ox the Edit menu is used to insert text
from one file into another. When
you select Merge, adialoguebox willpromptyou fora file to inserL This must be a text file; it can have
been
prepared using the BASIC
2 Plus editoritselforanother tenteditor.
Outlining
Largepmgrams in BASIC 2 Plus may well include a numberofroutines— subprograms and functions. (How these fit into the structure of a program is explained in Chapter 6 of the Language Refereuce) When there area grealmany routines in a program, itcan be difficult to keep track of them all, so
to help with this, the editor provides the Outline view of a program or module.
If, when you are editing a program or module, you select the Outline option in she View
menu, the first line
of every routine ix that program or module is displayed in the Edit window. The order these lines are displayed in corresponds to the ordcr in which theroutixes are declared in the file.
Outline view providesaconvenientwayofskippingaroundafile when editing it ifyouneed tochange aline in oneof theroutines, thereisnoneed to huntupand down the file, trying to find where the routine is declared. Simply select the Outline view and double-click on the routine you wish
to
edit. You will be returned to editing mode, with the routine of your choice displayed in the window.
You cannot edit directly with the Outline view selected, but you can copy text to the Clipboard. This is particularly useful when routines are exported to and from modules;
to
make sure the routine’s name is declared correctly in the IMPORT block, select the Outline
view
and Copy the name to the clipboard. Fmm there, it can be panted directly
to the
importing module, and you can be sure ofnotintroducing typing errors.
When the Outline view is displayed, the Lint., option in the File menu changes
to
Lint Outline,
- -
Selecting
it will print a copy the Outline view of the program.
There is an accelerator for selecting the Outline view; instead of selecting Outline in the View menu, press to achieve the same effect. returns you to oonnal editing.
|
![]() |
![]() |
12 |
![]() |