lxr Command

Issues one or more resolved commands in an Editor window.

Syntax

Parameter

Command 
Name of the command to be issued.

Description

The lxr command processes the command as a possible macro or Editor command. It is processed as follows:

  1. As a command only if the impset parameter is to on.
  2. If not found, the Editor adds lx to the front and looks for an external command in directories pointed to by the LPATH4 or CPPLPATH4 environment variables. If one is found, the Editor passes control to this.
  3. If not found and if impmacro is on, the Editor tries to process the command as a macro.

This routine receives all commands issued from Editor macros. In all cases, if live parsing is in effect, trigger is called after the command is invoked to ensure that any changed data is in the correct form. All parsers must be invoked using this command.

Example

To process a command without applying synonym resolution, type:

lxr add 10 

API Return Codes

-1 
The commands in the Command parameter were not valid Editor commands. Make sure all commands are valid, and if more than one command is issued, make sure you have used the mult command.
-8 
Insufficient storage to continue.

trigger Command