Previous Topic: Line Command Examples

Next Topic: Shorthand Time and Date Formats


Primary Commands

In addition to the standard product commands, the following primary commands are available to you within the text editor:

ALL string

Positions on the first occurrence of the specified string and displays a message indicating the total number of occurrences that are found.

CHANGE from-string to-string [ALL]

Modifies a string of characters in the text. Enter CHANGE (or C) followed by the character string to be changed, followed by the new character string, followed by ALL, if every occurrence of character string is to be changed. If either character string contains imbedded blanks, enclose the character string in single or double quotes. If either character string contains quotes, the entire string must be enclosed by the quote which does not appear in the string. To repeat the change enter the CHANGE command with no operands. Change processing starts from the current cursor position.

Note: If the from-string contains embedded blanks, the string is not changed unless it is contained entirely within a single line.

FIND string

Searches for a string of characters in the text. Enter FIND (or F) followed by the character string. To repeat the search press the FIND function key or enter the FIND command with no operands. Searching starts from the current cursor position.

Note: If the string being searched for contains embedded blanks, it must be enclosed in single or double quotes. In addition, the string is not found unless it is contained entirely within a single line.

FIRST string

Starts a search at the top of the text and finds the first occurrence of the specified string.

FLOW

Flows all text to the right margin preserving the indentation of each line from column 1. To flow text to a specific right margin enter FLOW, followed by the right margin column number. To flow text to the current right margin enter FLOW with no operands.

FLOWM

Flows all text to the left and right margins preserving only the relative indentation between the first and second lines of each paragraph. To flow text within specific margins enter FLOWM, followed by the left margin and right margin column numbers separated by a space.

LAST string

Starts a search at the bottom of the text and finds the first occurrence of the specified string.

LCMD cmd

Executes the line command cmd. This can be used to assign often used line commands to function keys.

LM nn

Sets the left margin of the text. Enter LM followed by the required left margin column number.

MARGINS

Displays/sets the left and right margins of the text. To set the margins enter MARGINS or MAR, followed by the left margin column number, followed by the right margin column number. To display the current margin settings enter MARGINS or MAR with no operands. Margin settings are only used when flowing text as a result of the FLOW or FLOWM primary command or the TF, TFM or TE line commands. The difference between the left and right margins must not be less than 20.

NEXT string

Searches forward through the text to find the next occurrence of the specified string. This is the default.

NULLS

Pads text lines with nulls or blanks. To pad text lines with blanks enter NULLS OFF. To pad text lines with nulls enter NULLS ON or NULLS.

NOTEPAD

Gives access to the Notepad facility which holds temporary text entered during the session.

PREV string

Searches backward through the text to find the previous occurrence of the specified string. This is the default.

PRINT

Prints the text on the printer of your choice.

RESET

Clears all pending line commands. This command can be abbreviated to RES.

RM nn

Sets the right margin of the text. Enter RM followed by the required right margin column number.