Inline Variable dialog box
Go Up to Refactor Menu
Refactoring > Inline Variable
The dialog box reports the number of variable occurrences that the Inline Variable command will be applied to. Click OK to complete the changes.
You can open the Inline Variable dialog box from the Refactor main menu, or by using the Refactor > Inline Variable command on a local variable in the Object Pascal Code Editor.
Note: The variable that you select should not be updated later in the source code. If it is, the error message "Variable index is accessed for writing." opens.
Note: This feature is available for implementation projects only.
Note: This command is only available while working in the Object Pascal Code Editor, not in the Diagram View.