How to import method blocks


Introduction

You can import method blocks from other method files. You can also use this function to copy blocks within a method. In the latter case, it is important to note that it is the saved version of the method that will be copied, not changes that have been made after you last saved the method.

The block is imported exactly as it appears in the source method. If the base of the imported block is defined as SameAsMain, the block will inherit the main base in the new method, regardless of the base in the source method. Also, the imported block is inserted with the same breakpoint value as the block selected for point of insertion.


Instruction

The table below describes how to import method blocks:

Step

Action

1

Choose Block:Import Block As in the Method Editor.

Result: The Import Block dialog box is displayed.

2

  • Select the method from which you want to import a block.

  • Select the block.

Result: The name of the selected block is displayed in the Block name field.

3

In the Call field, do the following:

  • On the From drop-down list, select a block into which the block will be imported.

  • In the At field, select the breakpoint value for the block to be imported.

Click the Import button.

Note: The imported block cannot have the same name as an existing block in the method. If the default name is not allowed for this reason, the Import button will be gray and locked. If this occurs, change the name of the imported block so that the Import button becomes available.

4

  • Repeat steps 2 and 3 if needed.

  • Click the Close button.


2005-06-15