Working With a Component

How to:

You can perform the following tasks on a component:


Top of page

x
Procedure: How to Run a Component
  1. Open a procedure in the Procedures window.
  2. From the Procedure window:
    • Right-click the component and select Run from the shortcut menu.

      or

    • Select the component and then click the Run button on the Main toolbar.

Top of page

x
Procedure: How to Edit a Component
  1. From the Procedure window, choose one of the following methods to open a component:
    • Double-click the component.

      or

    • Right-click the component and choose Open.
  2. Make your changes to the selected component.
  3. Exit the tool by clicking the control menu box. When asked if you want to update the procedure, click Yes. Your changes are saved.

Tip: You can edit a component with the Text Editor. Right-click the component and choose Edit Text. The Text Editor opens, displaying the component syntax. For information about the Text Editor, see Editing Application Components as Text in Developer Studio.


Top of page

x
Procedure: How to Check a Component
  1. From the Procedure window, choose one of the following component tools:
    • Define
    • Set
    • Use
    • Allocation

    The appropriate tool opens.

  2. Add your information to the tool, and click Check.

    The Check window opens, displaying the code produced by the tool and any errors that exist. The source code for your component and any errors that may exist are displayed. The following image is a Check window for the Define tool.

    Check window for the Define tool diagram

  3. Click OK to return to your component tool.

Top of page

x
Procedure: How to Copy a Component From One Procedure to Another
  1. Open both procedures by right-clicking them and choosing Open from the shortcut menu.
  2. Choose Tile from the Window menu to view both Procedure windows simultaneously.
  3. In the first Procedure window, click and hold the component you wish to copy.
  4. While holding the left mouse button, press the Ctrl key.
  5. Drag the mouse pointer to the second Procedure window.

    Note: You must press the Ctrl key to copy. Not pressing Ctrl before dragging moves the component.

  6. Release the mouse button when the mouse pointer is over the second Procedure window.

    The component is copied to the second window.

    When you drag a component, its icon changes to show whether its target location is valid. If it is not valid, the cursor resembles a circle with a slash through the word Drop. When you have dragged the component to a valid location, the cursor resembles a small square with a plus sign (+) inside it.

    Tip: You can move a component from one procedure to another by holding the left mouse button, and dragging the mouse pointer to the second Procedure window. Holding down the Ctrl key copies the component, whereas clicking and dragging moves the component.


WebFOCUS