Vai al contenuto

Editing a Global Variable

To edit the definition of an existing global variable, open it by double-clicking it, or the folder that it belongs to, from the project tree. The global variables editor opens and lets you modify its definition. Editing a Global Variable-image_0Changing the name of the variable:Select the variable you want to rename from the project tree then right-click on it and select Rename Variable from the context menu.Duplicating a variable:Select the variable you want to duplicate from the project tree then right-click on it and choose Duplicate Variable from the context menu.Enter the name of the new duplicated variable and confirm.Deleting a variable:Select the variable you want to delete from the project tree then right-click on it and choose Delete Variable from the context menu.Confirm the operation to delete the variable.Refactoring a variable:Refactoring will allow you to change the name of a global variable and consequently adjust all of its occurrences in the project.Select the desired variable from the project tree, then right-click on it and choose Refactoring from the context menu.A window will appear allowing you to insert a new variable name and showing you all the occurrences found for this symbol; if you change the name and press OK, all the shown occurrences will be modified. Editing a Global Variable-image_0