Previous Topic: RFIND CommandNext Topic: RIGHT Command


Using the RFIND and RCHANGE PF Keys to Selectively Change Strings

You can use the RFIND PF key in conjunction with the RCHANGE PF key to selectively change strings. For example, consider the following sequences:

Part

Command

Explanation

Part 1

CHANGE Work-Name-1 Work-Name-2

In Part 1, you enter the CHANGE Command to change the next occurrence of Work-Name-1 to Work-Name-2.

Part 2

RFIND key

In Part 2, you want to find the next occurrence of Work-Name-1, but you are not sure if you will want to change the string. By pressing the RFIND key, the next occurrence of Work-Name-1 which was specified in the CHANGE Command during Part 1, is found.

Part 3

RCHANGE key

In Part 3, you want to change the occurrence of Work-Name-1 that was found during Part 2 to Work-Name-2. By pressing the RCHANGE key, the occurrence is changed.

Part 4

RFIND key

RFIND key

In Part 4, you press the RFIND key to find the next occurrence of Work-Name-1. This time you do not want to change the string, so instead of pressing the RCHANGE key, you press the RFIND key again. The next occurrence of Work-Name-1 is found.

Part

Command

Explanation

Part 1

CHANGE Work-Name-1 Work-Name-2

RFIND key

In Part 1, you want to find the next occurrence of Work-Name-1, but if you are not sure if you want to change it to Work-Name-2. If you key in the CHANGE Command and press the RFIND key instead of the ENTER key, the RFIND will be executed. The next occurrence of Work-Name-1 that was specified in the CHANGE Command is found.

Part 2

RFIND key

In Part 2, you decide that you do not want to change the string that was found during Part 1, press the RFIND key. The next occurrence of Work-Name-1 is found.

Part 3

RCHANGE key

In Part 3, you want to change the string that was found during Part 2, press the RCHANGE key. This changes Work-Name-1 to Work-Name-2.