RAD Studio (Common)
ContentsIndex
PreviousUpNext
Renaming a Symbol

You can rename symbols if the original declaration symbol is in your project, or if a project depended upon by your project contains the symbol and is in the same open project group. You can also rename error symbols.

To rename a symbol

  1. Select the symbol name in the Code Editor.
  2. Right-click to display the drop-down context menu.
  3. Select RefactoringRename 'symbol type' ' symbol name' where symbol type is either method, variable, or field, and symbol name is the actual name of the selected symbol. This displays the Rename dialog box.
  4. Enter the new name in the New Name text box.
  5. If you want to preview the changes to your project files, select the View References Before Refactoring check box.
    Note: The menu commands are context-sensitive. If you select a method, the command will read Rename Methodmethod name where method name is the actual name of the method you have selected. This context-sensitivity holds true for all other object types, as well.

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!