How to delete method blocks


Four ways to delete blocks

There are four ways to delete blocks:

  • To right-click a block and choose Delete from the shortcut menu

  • To select a block and click Delete in the Instruction box

  • To select a block and press the <Delete> key on the keyboard

  • To select a block and use the Block:Delete Block command

Note: When you use any of the first three ways, the Method Editor dialog box will give you the option to transfer the block to the Unused section.


Delete options

The Delete Block dialog box is displayed when you delete a block with one of the first three options mentioned above.

Options

Choose from the following options:

  • Delete: The block is totally removed from the method. If the block is called several times in the method, all the blocks will be deleted. Blocks deleted in this fashion cannot be called again in the method.

    Note: If the block contains sub-blocks, another dialog box is displayed, asking you if you want to delete the sub-blocks as well.

  • Move: The block is deleted from the method and transferred to the Unused section. If the block is called several times in the method, however, only the row with the block currently marked in the Text pane will be deleted. In this case, the block will not be placed in the Unused section (since the block is still used in the method). Blocks deleted in this fashion can be called again in the method.


How to use the Block:Delete Block command

The table below describes how to delete a block using the Block:Delete Block command:

Step

Action

1

Select the menu command Block:Delete Block in the Method Editor.

Result: The Delete Block dialog box is displayed with all blocks listed in alphabetical order.

2

Select the blocks you want to delete and click OK.

3

Click Yes to confirm.


How to delete unused blocks

The table below describes how to delete an unused method block.

Step

Action

1

Highlight the method block.

  • Press the <delete> key

or

  • Right-click and choose Delete on the shortcut menu.

Result: The Delete Block dialog box opens. Note that the Move button is not available.

2

Click the Delete button.

Result: The unused block is deleted and cannot be called upon again in the method.


2005-06-15