Editors
The Editor is a processor you can use to modify any item in the database to which you have access. The Editor can create and/or modify DataBasic programs, PROCs, data file items, and file dictionary items.
Editor commands are letter mnemonics that must appear as the first non-blank input character(s) of an Editor sentence. Editor commands are not case sensitive; they can be entered as either upper or lower case characters.
For example, the following is the syntax of the P command, one of the Editor processor:
When you edit an existing Reality item, you are dealing with three independent versions of that item.
-
The primary version is the one on the disk. This version remains unchanged until you issue a FI (File) or FS (File Save) command.
-
Two other versions of the item are stored in areas of your process workspace. The first of these (the current version) contains the version of the item you are currently working with.
The second (the updated version) contains all lines from the current version up to the current active line.
If you try to edit a lower numbered line before you issue the F command, the following message is displayed:
Sequence?
Enter F, then go to the line you want to edit. It has the following 4 functions:
-
Copies any remaining unaltered lines from the current into the updated version.
-
Renumbers the lines (attributes) sequentially within the item.
-
Repositions the current line pointer to the first line of the item and the EOI pointer to the last line of the item.
-
Switches (toggles) the function of both versions (that is, Version 1 becomes the updated buffer and Version 2 becomes the current buffer).