EDITF
Formatted Program Editor
This directive invokes the Thoroughbred Basic formatted program editor, which allows you to create, edit, and maintain Thoroughbred Basic programs using a formatted display of the program. EDITF allows you to select the level of formatting, use the editing keys, and obtain Thoroughbred Basic on-line documentation and help.
Syntax
Section titled “Syntax”EDITFRemarks
Section titled “Remarks”This directive can be used only in Thoroughbred Basic Console Mode.
To use EDITF, you must have Dictionary-IV installed and your terminal must be set up for Thoroughbred Basic Windows. Before you use EDITF for the first time, you must run Dictionary-IV and log in; this identifies your terminal to Dictionary-IV.
The EDITF menu allows you to select an editing option from the list of options, which includes Structured, Unstructured, Range of Statements, and Source-IV. If you select Unstructured, minimum formatting is done to the program to display it. Unstructured requires less memory than Structured, and may appear to operate faster. If you select Structured, considerable formatting is done to the program to display it, including breaking compound statements into multiple lines, indenting continuation lines, and formatting program control commands such as IF/THEN/ELSE/FI, WHILE/WEND, and FOR/NEXT to display the logical structure of the command (including nesting). The Range of Statements option lets you display a subset of program lines. The Source-IV option calls Thoroughbred Source-IV, a program maintenance and source control system.
If a program is not currently in memory, EDITF allows you to enter a new program.
If a program is currently loaded into memory and has not been protected by ENCRYPT or PSAVE, EDITF displays the program for editing after you select an editing option.
EDITF uses a wide variety of functions to edit Thoroughbred Basic programs. From any location in the EDITF system, press the F6 key for help or the F4 key to exit. When in the editor, you can select the on-line documentation system by pressing the F3 key.
When you exit EDITF by pressing the F4 key the system displays a “Save (Y/N)?” prompt, asking whether you want to save the edited program back into the program workspace memory. If you want to save the program to disk, you must use the SAVE directive in Thoroughbred Basic Console Mode.
When you exit EDITF, a RESET is performed and the program execution pointer is set to the first statement. If you need to edit a program without doing a RESET and resetting the program execution printer, use the EDIT line or EDIT full-screen directive.
Examples
Section titled “Examples”LOAD "TESTPGM"EDITFAfter the program TESTPGM is loaded, the formatted program editor is invoked, allowing you to edit the program.
See also
Section titled “See also”EDIT line, EDIT recall, and EDIT full-screen directives
Description of EDITF in the Thoroughbred Basic Utilities Manual
From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF