Show: Delphi C++
From RAD Studio
Go Up to Refactoring Applications Index
Editing Delphi code in the Code Editor, you can use the Refactor > Declare Variable menu command to declare new variables.
To declare a variable
- In the Code Editor, click a variable name that has not yet been declared.
Note: Any undeclared variable will be highlighted with a red wavy underline by Error Insight.
- Choose the Refactor > Declare Variable menu command. If the variable has already been declared in the same scope, the command is not available.
- Fill in the Declare New Variable dialog box as needed.
- Click OK. The variable declaration is added to the procedure, based on the values you entered in the Declare New Variable dialog box.