# Renaming variable names affects actions using variables with similar names

**URL:** https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521
**Category:** Bugs
**Created:** [February 25, 2014, 3:50am UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521 "2014-02-25T03:50:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![quincunx](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/q/a3d4f5/32.png) [@quincunx](https://www.finalbuilder.com/forums/u/quincunx)
#### Post date: [February 25, 2014, 3:50am UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521/1 "2014-02-25T03:50:06Z")

</div>

- FinalBuilder: 7.0.0.2671 on Windows 8.1  
  
**Precondition:**  
  
 \* Define at least two variables with similar names, e.g.: "VAR" and "VAR\_A"  
 \* Add an action using "VAR\_A", e.g. "Log Variable Values" action  
  
**Steps to reproduce the problem:**  
  
 \* Rename variable "VAR" (Edit Variable) to e.g. "renamed"  
 \* Click on action list (to trigger a refresh) or select "Project \> Clear Status"  
  
 **Result:**  
  
 \* Name of variable "VAR\_A" referenced in actions is renamed to "renamed\_A" (the substring is matched and replaced)  
  
**Expected Result:**  
  
 \* Only the exact matching variable is renamed.  
  
**Note:**  
  
 This only happens to references to variables in actions - the name of the variable in the project tree is not changed.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [February 25, 2014, 11:23am UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521/2 "2014-02-25T11:23:03Z")

</div>

Hi Chris,   
  
 Thank you for reporting this. I can reproduce the error with renaming of variables. The details you have provided were a great help in finding this quickly. I will look into this today and aim to have a fix for this ASAP.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [February 26, 2014, 1:45am UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521/3 "2014-02-26T01:45:50Z")

</div>

Hi Chris,   
  
I found that the issue was limited to the Log Variable action, and Extra File Info action. These have been corrected to replace the full variable name instead of only part of the string. The build with this fix is located [here](http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_2704.exe):   
  
[downloads.finalbuilder.com/download…0\_2704.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_2704.exe)   
  
Thank you once again for locating this issue and reporting it in such details. Makes things very simple this end.

---

<div class="post-metadata">

### Author: ![quincunx](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/q/a3d4f5/32.png) [@quincunx](https://www.finalbuilder.com/forums/u/quincunx)
#### Post date: [February 26, 2014, 1:46am UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521/4 "2014-02-26T01:46:46Z")

</div>

Hello Jason!  
  
Thanks for providing a new build so quickly. I’m afraid that the problem is not only limited to the two actions you mentioned. At least it affects the Read Ini File action, too, which is not fixed in this build.  
  
Greetings,  
Chris

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [February 26, 2014, 10:58am UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521/5 "2014-02-26T10:58:09Z")

</div>

Hi Chris,   
  
 Thanks for catching this. It must be using a different code path to the ones I found. I will post when I have a fix for this.

---

<div class="post-metadata">

### Author: ![quincunx](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/q/a3d4f5/32.png) [@quincunx](https://www.finalbuilder.com/forums/u/quincunx)
#### Post date: [March 11, 2014, 12:07pm UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521/6 "2014-03-11T12:07:10Z")

</div>

Hi Jason!  
  
Do you have any update on this?  
  
Regards,  
Chris

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [March 12, 2014, 12:07pm UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521/7 "2014-03-12T12:07:43Z")

</div>

Hi Chris,   
  
 Apologies I thought I had posted the latest update. Thanks for checking back in.   
  
 [http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700\_2725.exe](http://downloads.finalbuilder.com/downloads/finalbuilder/700/FB700_2725.exe)

---

<div class="post-metadata">

### Author: ![quincunx](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/q/a3d4f5/32.png) [@quincunx](https://www.finalbuilder.com/forums/u/quincunx)
#### Post date: [March 13, 2014, 1:29am UTC](https://www.finalbuilder.com/forums/t/renaming-variable-names-affects-actions-using-variables-with-similar-names/3521/8 "2014-03-13T01:29:26Z")

</div>

Hi Jason!   
  
 Thanks, this build works now!   
  
 Greetings,   
 Chris
