Quit Macro [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Quit Macro
Purpose
Forces a currently executing macro to terminate.
Default Syntax
Q
Description
This command, when executed within a macro, stops a currently executing
macro. This function enables you to add comments without affecting the
macro contents. Consequently, the command can be regarded as a separator
between a macro and accompanying macro comments. You can also use this
command to preserve blanks at the end of a macro, since HP EDIT
ordinarily strips trailing blanks from defined macros.
In order for the command to perform its function, you must construct a
macro that incorporates the letter Q immediately following the keystroke
portion of the macro. You then add the desired comments after the letter
Q.
Procedure
To incorporate the Quit Macro command within a macro:
1. Add the letter Q immediately following the last executable macro
character.
2. Type in the desired comments. You may use any or all of the space
between the letter Q and the end of the line.
3. Press / and Return to exit Text Entry mode and enter Command mode.
Example
To define a macro to the E key that inserts the word END above the
current line and also add comments about the function of the macro:
1. Insert a new line in text by executing the Insert Line (I)
command.
2. Type in the following macro and comments beginning at the cursor
position at the far left column:
mE=Iend;/^mQ *** This macro inserts "end".
3. Press / and Return to exit Text Entry mode and enter Command mode.
4. Execute the Define Macro (z) command. HP EDIT deletes the macro
from the screen, stores it for subsequent execution, and displays
Macro defined on the message line.
Related Commands
Begin Capture
Capture Macro
Define Macro
Define Multiple Macros
Delete All Macros
Delete Macro
Execute Macro
Go To Macro
Insert All Macros
Insert Macro
Show Macros
Use Current Key Assignment
MPE/iX 5.0 Documentation