How to find, copy and move method blocks


Introduction

By using the Edit options in the Method Editor, you can find, copy and paste and move blocks within a method.


How to find text strings in the method text

The table describes how to find text strings in the method text.

Step

Action

1

Choose Edit:Find in the Method Editor,

or

right-click an instruction or a block in the Text window and select Find.

Result: The Find dialog box is displayed.

2

  • Enter the text you want to search for, search direction and case matching criteria.

  • Click OK.


How to copy and paste a block

The table describes how to copy a block.

Step

Action

1

  • Right-click the block you want to copy.

  • Choose Copy.

2

  • Right-click the instruction line just above the point where you want the block to be pasted.

  • Choose Paste.

Result: A dialog box asks if you wish to rename the pasted block.

3

Click Yes to rename the block before insertion, or No to insert the copied block directly.

Result: The pasted block is inserted with the same breakpoint value as the block or instruction selected for point of insertion.


How to move a block

The table describes how to move a block.

Step

Action

1

  • Right-click the block you want to move.

  • Choose Cut.

2

  • Right-click the instruction line just above the point where you want the block to be pasted.

  • Choose Paste.

Result: The block is now removed from its original breakpoint and pasted at the new breakpoint. The pasted block is inserted with the same breakpoint value as the block or instruction selected for point of insertion.


2005-06-15