Declaring Field

From RAD Studio
Jump to: navigation, search

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

  1. In the Code Editor, click a field name that has not yet been declared.
  2. Choose the Refactor > Declare Field menu command.
  3. Fill in the Declare New Field dialog box as needed.
  4. 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.


See Also