Go Up to Refactoring Procedures Index
Editing Delphi code in the Code Editor, you can use the Refactor > Declare Field menu command to declare new fields.
To declare a field
- In the Code Editor, click a field name that has not yet been declared.
- Choose the Refactor > Declare Field menu command.
- Fill in the Declare New Field dialog box as needed.
- Click OK. The new field declaration is added to the type section of your code, based on the values you entered in the Declare New Field dialog box.
Note: If the new field conflicts with an existing field in the same scope, the Refactorings pane is displayed, prompting you to correct the conflict before continuing.