Change Parameters

From RAD Studio
Jump to: navigation, search

Go Up to Refactor Menu

Refactor > Change Params

Adds, edits, removes, and rearranges the parameters of a method.

Item Description

Class

Displays the class in which the selected method is defined.

Method

Displays the method that you are refactoring.

Parameters

Lists information about the parameters declared in the method.

Add

Displays the Add Parameter dialog box, which you use to add a parameter to the method signature.

Edit

Displays the Edit Parameter dialog box, which you use to edit a parameter that you have created.

Remove

Removes the selected parameter.

Move Up

Moves the selected parameter up in the parameter declaration list.

Move Down

Moves the selected parameter down in the parameter declaration list.

Note: If you remove a parameter, you need to manually remove any method code that uses the removed parameter.

See Also