F - File
Files, saves, renames or deletes the current item or, in the case of DataBasic source code, files and compiles the current item.
Caution
When using this command, you need to be aware of the effects of any file triggers that might be run as a consequence. See File Triggers for more information.
Command
F
Action
Press F to enter the File function. The Status/Command Line prompts:
(I)File (S)ave (R)ename (D)elete (B)asic:
Pressing only RETURN aborts the file command.
File
Press I to update the disk with the current changes and exit to TCL or to the next item in an edit list. This command option is similar to the FI command in the Line Editor.
Save
Press S (Save) to update the disk with the current changes and continue editing the current item. This command option is similar to the FS command in the Line Editor.
Rename
Press R for rename. The Status/Command Line prompts:
RENAME item-id as:
Enter the name of the new item-id for the item being filed.
If the new item-id already exists, you have the option of overwriting the existing item or typing another item-id as the new name.
Already on file - Overwrite ? : N
If you just press RETURN
the RENAME item-id as:
prompt is redisplayed. If you press Y, or the new item-id specified did not
already exist, the current item is filed with the new id, overwriting any
existing item.
You are then prompted:
DELETE item: item-id?:
Press Y to delete the original item. Any other input, including RETURN, leaves the original item on file without the changes made during the current editing session.
Delete
Press D to delete the item being edited and exit to TCL or to the next
item in an edit list. The Status/Command Line prompts Are you sure you want
to DELETE?:N
to prevent accidental deletion.
This command option is similar to the FD command in the Line Editor.
Note
The RECOVER-FD command does not work on items deleted with the Screen Editor. Once an item is deleted with this command, it can no longer be accessed.
DataBasic Compile
Press B to file the current item, and if it is DataBasic source code, to compile the item.
This option causes a one-way transfer to the DataBasic compiler and is only practical for editing and compiling single items. You are not returned to the Screen Editor if you are editing an item list.