Feedback

  • Contents
 

Add or edit a subroutine parameter

Subroutine parameters can be added and deleted form the Properties notebook of a Subroutine initiator. Add or edit a subroutine parameter any time you need to capture information from the handler that calls the subroutine. The parameters that you enter using this procedure appear in the subroutine tool that appears on the subroutine palette. The parameters do not appear in the step that calls the subroutine until you publish the subroutine.

To add a subroutine parameter:

  1. Open the Subroutine Initiator to the Parameters page.

  2. Click the Add button. The Subroutine Parameter dialog appears, as shown in the following figure.

    images\SUBPARM.gif

  3. Enter a parameter label. This label appears in the step that calls this subroutine.

  4. Enter a variable name to hold the value entered for the parameter.

  5. Choose a type for the variable.

  6. Select or clear the This parameter will be used only as an input value to this subroutine check box.
    If you want the parameter to pass a value back to the handler that called it, make sure the check box is not selected. Selecting this check box means that the value of this parameter cannot be changed within this called subroutine. Deselecting this check box means that the value of this parameter can be changed within this subroutine and changes will be passed back to the handler that called this subroutine.

  7. If you want a default value for the parameter, type it in the Default entry dialog box. This can be a constant value, a value of a variable, or an empty string.

  8. Click OK to add this subroutine parameter.

To edit a subroutine parameter:

  1. Open the Subroutine Initiator to the Parameters page.

  2. Click the Edit button. The Subroutine Parameter dialog box appears.

  3. Make any necessary changes to the settings.

  4. Click OK when you are finished.