Introduce Variable dialog box

From RAD Studio
Jump to: navigation, search

Go Up to Refactor Menu

Refactor > Introduce Variable

You can open the Introduce Variable dialog from the Refactoring main menu, or by using the Refactoring | Introduce Variable command on a variable in the Code Editor.

Note: This feature is available for implementation projects only.

Note: This command is only available while working in the Code Editor.


Enter a name for the new variable. The variable created is given the same type as the original variable.

Replace all occurrences

If applicable, check this field to replace all occurrences of the expression. The Introduce Variable dialog indicates the number of occurrences that it will replace with the new variable. Note that the refactoring does not replace any occurrences of the variable prior to the point in the code at which you selected to introduce the new variable.



Creates the new variable and closes the dialog box.


Discards all changes and closes the dialog box.

See Also