next previous up contents index
Next: Programmable Function Keys Previous: Programming the Editor Up: Functions


Command Storage

exaEdit can store commands or commands that are concatenated with the command separator (compare section Concatenating Commands, Command Separator) to allow you to fetch them conveniently whenever you need them.

exaEdit knows two kinds of command storage. First, there are the F keys explained in Programmable Function Keys, and, second, the two exaEdit commands X and Y which are explained below. The essential difference between the F keys and the commands is that you may use the command sequence saved as X or Y within another command sequence as command X and Y, again, while the F keys can only be used separately.

You set the command storage X with the command

For example:

For the execution of this command it is sufficient to give the command X. You will often wish to execute a command repeatedly. To do this, you only have to specify the number of repetitions behind the command.

executes the command sequence 17 times.

If a command cannot be executed, for example because the end of the workfile is reached, then the execution of X is aborted. This would allow you to use, for example, the predefined X from above with X 9999 even if the workfile does not contain as many records as would be necessary at first sight.

With the command

you achieve that exaEdit displays the command sequence stored in X in the window. This is very useful if you have defined a highly complex command sequence and you want to change it only slightly. In this case you enter X ?, change the line in the window and hit the return key. By doing so, you have redefined (and changed) X.

The command Y is identical with X. In the definition of X you may use Y and vice versa. A directly or indirectly recursive definition is recognized by exaEdit in the execution of the commands and results in one of the following two messages:

You can find further details in section The Commands in Detail at the description of X or Y.
next previous up contents index
Next: Programmable Function Keys Previous: Programming the Editor Up: Functions