# Variable value has "%" issue

**URL:** https://www.finalbuilder.com/forums/t/variable-value-has-issue/779
**Category:** Discussion
**Created:** [March 12, 2008, 8:50am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779 "2008-03-12T08:50:51Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 12, 2008, 8:50am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/1 "2008-03-12T08:50:51Z")

</div>

Hi all :

&nbsp;&nbsp; I have a problem in replacing variable in Finalbuilder..

&nbsp;&nbsp; I have a variables and it's value is **"%tcc"**...

&nbsp; When I read the variable and want to replace one data using this variable..

&nbsp; FinalBuilder process told me failure...and show message **"Missing % after tcc"**

&nbsp; does anyone encounter this problem ?

&nbsp; Please help......

&nbsp;

Jerry

&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: [March 13, 2008, 12:10pm UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/2 "2008-03-13T12:10:30Z")

</div>

Hi Jerry,   
  
 Thanks for your post, sorry to hear you’re having problems.   
  
 Variable expansion in Automise is actually recursive by default, so Automise will keep looking for more variable references in the contents of the variable.   
  
 To disable this, add an exclamation point in front of the variable name in the reference - ie use %!VariableName% instead of %VariableName%.   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 13, 2008, 4:11am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/3 "2008-03-13T04:11:06Z")

</div>

Hi Angus :   
  
 Thanks for your help…   
 I try your solution … and find it works…   
  
 But the result is not my expectation… becuase when it replaces the data, it will only use “tcc” to replace if the variables value is “%tcc”…   
  
 how could I still retain the original variable value("%tcc") when I use the variable to replace data ?   
  
 Best Regards,   
 Jerry

---

<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: [March 13, 2008, 6:51am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/4 "2008-03-13T06:51:54Z")

</div>

Hi Jerry,   
  
 If this is actually the case, that sounds like a bug. Can you let us know exactly what version of Automise/FinalBuilder you are using, what action you are using, and precisely how you are referencing the value, please?   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 13, 2008, 7:54am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/5 "2008-03-13T07:54:52Z")

</div>

Hi Angus:   
  
 I use FinalBuilder 5 and execute “Read ini File” action to read the varialbes in INI Files.   
  
 Then use “Text Replace(Deprecated)” action to replace varialbes…   
  
  
 please see the attachment for the detail…thanks   
  
 Jerry

---

<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: [March 13, 2008, 8:03am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/6 "2008-03-13T08:03:16Z")

</div>

Hi Jerry,   
  
The attachment didn't seem to submit, sorry. You may need to zip the files.

What version of FinalBuilder 5 are you using (you cand find the version number under Help-\>About FinalBuilder.)  
  
- Angus

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 13, 2008, 8:04am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/7 "2008-03-13T08:04:57Z")

</div>

Related to the previous reply

Add the attachment

[data.zip](https://www.finalbuilder.com/forums/uploads/default/original/2X/9/95a711d43a1cbaae8915710c859bb130eabc7374.zip) (16.304 KB)

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [March 13, 2008, 8:06am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/8 "2008-03-13T08:06:39Z")

</div>

Hi Angus :

&nbsp;&nbsp; I use Finalbuilder 5.5.0.348

&nbsp;

Jerry

---

<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: [March 14, 2008, 1:54am UTC](https://www.finalbuilder.com/forums/t/variable-value-has-issue/779/9 "2008-03-14T01:54:38Z")

</div>

Hi Jerry,   
  
I think I mightn't have explained myself properly to you before. The %! needs to be where the variable is referenced.   
  
So if the variable you are using PROJECT\_CONFIG\_PASSWORD (on the Text Replace tab, in the screenshot) then you need to reference it as %!PROJECT\_CONFIG\_PASSWORD%, on that page.   
  
Hth.   
  
- Angus

PS I've moved this thread to the FinalBuilder -\> General Discussion forum because it refers to FinalBuilder, not Automise.
