Getting External Code
-
To load an external program or text file, do one of the following:
-
On the Program menu, select Get External Code.
-
On the toolbar, click the Get External Code button.
-
The Open Visual PRO/5 Program or Source File dialog appears. Enter the name of a text file or a tokenized Visual PRO/5 program.
-
If you enter the name of a text file, it is loaded into the View Window and input focus is transferred to the View Window.
-
If you enter the name of a Visual PRO/5 program file, the following processing takes place:
- In a temporary copy of the program, all line number references are converted to line labels, and line labels are created as necessary.
- The temporary copy of the program is listed to a text file using the lister parameter from the gb.ini file. This will usually be pro5lst.exe.
- The listed version of the Visual PRO/5 program file is loaded into the View Window and input focus is transferred to the View Window.
-
Now that the program listing is in the View Window, you can do the following:
-
To navigate within the program listing, use the PGUP/PGDN keys or the up/down arrow keys.
-
To copy portions of the program listing to the Edit Code window, Do the following:
-
Select one or more lines. Copy the selected lines to the clipboard using the Copy command from the Edit menu.
-
Switch back to the Edit Code window by selecting Window 0 from the Window menu or by clicking on the Toggle Window tool button.
-
And finally, select the Paste command from the Edit menu. You can toggle back and forth between the Edit Window (Window 0) and the View Window (Window 1) using the Window 0 and Window 1 selections on the Window menu or by clicking on the Toggle Window tool button. The program listing remains in the View Window (Window 1) until the next time you select Get External Code from the Program menu, View Program from the Program menu, or Read Me from the Help menu.