RAD Studio (Common)
ContentsIndex
PreviousUpNext
Refactoring: Changing Parameters
To change parameters, follow these steps:

  1. Select method in the Diagram View, in the Model View or in the Editor.
  2. Choose Refactoring->Change Parameters from the main menu.
    Tip: Alternatively, you can right-click and choose Refactoring->Change Parameters on the context menu.
  3. In the resulting dialog, select parameter from the list and choose the desired action:
    • To add a new parameter, click Add, and specify the parameter name, type and default value.
    • To delete parameter, click Remove.
    • To rename parameter, click the Name field, and edit the parameter name using the in-place editor.
  4. If applicable, check Refactor Ancestors.
  5. Check Preview Usages if necessary.
    • If this option is checked when you click OK, the Refactoring window opens allowing you to review the refactoring before committing to it. Click the Perform refactoring button to complete the changes. You can use the Undo and Redo commands as necessary once you have performed the refactoring.
    • If this option is cleared when you click OK, the Refactoring window opens with the change completed. You can use the Undo and Redo commands as necessary once you have performed the refactoring.

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!