RAD Studio (Common)
ContentsIndex
PreviousUpNext
Introduce Variable dialog box

RefactorIntroduce 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.

Name 
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.  
 
OK 
Creates the new variable and closes the dialog box.  
Cancel 
Discards all changes and closes the dialog box.  
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!