Go to Glossary Search VisualAge C++ Help Go to VisualAge C++ Help Home Page Go to WWW VisualAge C++ Site

Edit Pull-down Menu Selections

Selections in the Edit pull-down menu group let you modify, search for, and mark text within your file. Selections actually displayed in the Edit pull-down menu can vary depending on the application with which you are using the Editor, or the type of file being edited.

The standard set of Edit pull-down menu selections are:

Undo Select this menu choice to undo a set of changes made to the current file.

This menu choice is available only when one or more sets of undoable changes exists.

If several sets of changes have been done to the file, the Undo choice will undo those changes one at a time, starting with the most recent set of changes.

Redo Select this menu choice to redo a previously-undone set of changes to the current file.

This menu choice is available only when one or more sets of redoable changes exists.

If several sets of changes to a file have been undone, the Redo choice will redo those changes one at a time, starting with the most recent set of changes undone.

Set checkpoint Select this menu choice to record the changes made to a file since the last checkpoint was taken.

Checkpoints are stored on a first in, first out basis. Older checkpoints are discarded as new checkpoints are set.

Cut Select this menu choice to delete selected text from the Editor window and copy it to the clipboard. You can then then move this text elsewhere in the file by using the Edit->Paste operation.

Note: You cannot copy rectangular blocks to the clipboard - only character and line blocks.

Copy Select this menu choice to copy selected text in the Editor window to the clipboard. The copied text is left selected and unchanged. You can then place a copy of this text elsewhere in the file by using the Edit->Paste operation.

Note: You cannot copy rectangular blocks to the clipboard - only character and line blocks.

Paste Select this menu choice to insert the text currently in the clipboard at the current cursor position in the Editor window.

Notes:

  1. You cannot use this choice when there is no text in the clipboard. Use the Edit->Cut, Edit->Copy, or Edit->Block operations to place text in the clipboard.
  2. If you paste text into a file that has a record length shorter than that of the text in the clipboard, the text may be truncated when you save the file back to its host. You will be warned that the file's record length has been exceeded in such a case.
Find and replace... Select this menu choice when you want to find a specific item of text in your file. The Editor - find and replace window appears where you can specify find options including, if you want, new text to replace the found text.
Find next
Find again
Select this menu choice to find the next occurrence (after the current cursor position) of a search item previously defined in the Editor - find and replace window.
Find up Select this menu choice to find the previous occurrence (before the current cursor position) of a search item previously defined in the Editor - find and replace window.
Find selection Select this menu choice to find the character string currently selected in the Editor window. This character string becomes the new search string in the Editor - find and replace window.

Note: If you select more than one line, the Editor uses only the text from the first line.

Block -> Select this menu choice to mark and work with blocks of text. A cascaded menu appears, with the following block operation choices:
Mark line Marks the line the cursor is on, or if a line is already marked extends the selection from the marked line to the current line.
Mark character Marks all text in the file from where you first select this choice, to where you select it a second time.
Mark rectangle Marks all text in a rectangle from where you first select this choice, to where you select it a second time.

Note: this choice is not available if the View->Wrap pull-down menu choice has been selected.

Unmark Clears any currently marked block.
Copy Copies the marked text to the cursor position, without erasing it from its original place. (To copy a block, mark it in an Editor window and move the text cursor to where you want to put it before selecting this choice.)
Overlay Copies the marked text to the cursor position, overlaying the new text over the original text rather than inserting it.
Move Moves the currently marked block to the current cursor position, thereby erasing it from where it was before. (To move a block, mark it in an Editor window and move the text cursor to where you want to put it before selecting this choice.)
Delete Erases the currently marked block from the current file. Any remaining text moves up to fill the gap created.
Upper case Converts all characters in the currently marked block to upper case.
Lower case Converts all characters in the currently marked block to lower case.
Select all Select this menu choice to select all text in the Editor window.
Deselect all Select this menu choice to deselect all text in the Editor window.
Locate -> Select this menu choice to locate errors, line or sequence numbers, or text.

Available choices in the resulting cascaded menu will vary, depending on the application and context in which you are using the Editor. Typical choices are shown below:

Line Selecting this choice opens the Locate - line window, in which you can specify the line or sequence number at which you want to position the cursor.
Date Selecting this choice opens the Locate - date window, in which you can specify the date you wish to locate.
Start of block Moves the cursor to the first character of a marked block.
End of block Moves the cursor to the last character of a marked block.
Previous location Locates the last cursor position where text was entered.
Quick mark Moves the cursor to the place in the text where you set a quick mark.
Mark Lets you find a place in the text where you named a mark. The Locate - mark window appears listing all marks you set in the text, allowing you to select a specific mark.
Previous error Finds the previous error in the current file, and displays its error message in the error list window. (If you excluded error messages in the error list, their corresponding errors are ignored if you select this choice. However, if you hid any messages, their corresponding errors are located by this choice.)
Next error Finds the next error in the current file, and displays its error message in the error list window. (If you excluded error messages in the error list, their corresponding errors are ignored if you select this choice. However, if you hid any messages, their corresponding errors are located by this choice.)
Set quick mark Select this menu choice to place a quick mark at the current cursor position.

You can later use the quick mark to return to the current cursor position when you select Quick mark choice from the Edit->Locate cascaded menu.

Since you can use one quick mark at a time, any previous quick mark you set is lost if you select this choice.

Quick marks are not saved with files.

Name a mark... Select this menu choice to name a mark at the current cursor position. The Name a mark window appears, into which you can enter a name for the new mark.

You can later use the mark name to return to the marked cursor position. Select Mark from the Edit->Locate cascaded menu, and select the name of the mark from the Locate - mark window that appears.

Marks are not saved with files.



Enter and Edit Text
Undo Changes
Mark Blocks of Text
Manipulate Blocks of Text
Using Location Marks in a File
Finding a Specific Line in a File
Finding Text
Find and Replace Text