# Issue with variable named test

**URL:** https://www.finalbuilder.com/forums/t/issue-with-variable-named-test/2948
**Category:** Bugs
**Created:** [February 21, 2008, 5:28am UTC](https://www.finalbuilder.com/forums/t/issue-with-variable-named-test/2948 "2008-02-21T05:28:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![fabienriaille](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@fabienriaille](https://www.finalbuilder.com/forums/u/fabienriaille)
#### Post date: [February 21, 2008, 5:28am UTC](https://www.finalbuilder.com/forums/t/issue-with-variable-named-test/2948/1 "2008-02-21T05:28:41Z")

</div>

(FB 5.5.455)

I created a project variable named "test". I set up a value in one action into one of the script events (BeforeAction) , but i tried to access this variable in the following action (Run Script / On execute event), the variable's value is empty.

As soon as i renamed the variable into "testfr" for instance, it works normally.

Regards,

Fabien

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [February 22, 2008, 12:09pm UTC](https://www.finalbuilder.com/forums/t/issue-with-variable-named-test/2948/2 "2008-02-22T12:09:45Z")

</div>

Hi Fabien,   
  
Thanks for your post. I can't explain this behaviour offhand, although I do recommend that you download the latest version of FinalBuilder 5.   
  
What scripting language were you using? Did you use a local variable quantifier like 'var' or 'dim' when you set the variable? This would cause a new local scope variable to be created with the same name as your test variable.   
  
There is actually an object available in FinalBuilder to explicitly specify that you want a FinalBuilder variable, not a script variable. The syntax is FBVariables.test (or similar.) It's not required, but it does guarantee that you don't get a local variable with the same name.   
  
Please let us know how you go.   
  
Regards,   
  
Angus

---

<div class="post-metadata">

### Author: ![fabienriaille](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/f/e9a140/32.png) [@fabienriaille](https://www.finalbuilder.com/forums/u/fabienriaille)
#### Post date: [February 22, 2008, 9:25am UTC](https://www.finalbuilder.com/forums/t/issue-with-variable-named-test/2948/3 "2008-02-22T09:25:29Z")

</div>

thanks,   
 i found my mistake, i was using a “Reset Variable to default” between the 2 actions. sorry…
