Next: The Profile Files
Previous: Command Sequences in the Workfile EXEC
Up: Functions
Parameter Variables
Parameters in exaEdit commands are at first constants such as
6 or /abc/
in the commands NEXT 6 or LOCATE /abc/.
In the place of such constants you may also use variables, they are
called parameter variables.
There are three types of parameter variables:
- Type N (numerical). The value of the variable is a whole number.
- Type L (line number). The value is a line number.
- Type S (string). The value is a character string.
Some parameter variables are pre-defined. They get their value by the
execution of certain commands:
- &Col is of type N and is set by the commands
LOCATE and RLOCATE as the variable
indicates the column in which the search argument was found.
- &Count is of type N and contains the result of the
execution of the command COUNT.
- &Line is of type L and is set by the commands of the
LOCATE family. The value is the line number where the
search stops.
- &Loc is of type S and is set by the commands of the
LOCATE family. The value is the search argument.
Besides these parameter variables which are always present you may
define own variables as you want. How this is accomplished you can find
in section
The Commands in Detail, under &.
The parameter variables allow you in a certain way to "calculate", for
example you may add constants or build substrings. These features are
also described in the named section.
Next: The Profile Files
Previous: Command Sequences in the Workfile EXEC
Up: Functions