# Strange behavior when using variables in text

**URL:** https://www.finalbuilder.com/forums/t/strange-behavior-when-using-variables-in-text/2794
**Category:** Bugs
**Created:** [March 7, 2007, 3:35am UTC](https://www.finalbuilder.com/forums/t/strange-behavior-when-using-variables-in-text/2794 "2007-03-07T03:35:59Z")
**Posts on this page:** 2
**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 7, 2007, 3:35am UTC](https://www.finalbuilder.com/forums/t/strange-behavior-when-using-variables-in-text/2794/1 "2007-03-07T03:35:59Z")

</div>

Hi,

I have noticed that if I have a variable called MyVariable&nbsp;and use that in a textbox or&nbsp;other field it behaves strange when there is text behind it.

Maybe it is me using it wrong, but if I in a textfield writes %My&nbsp;&nbsp;&nbsp;i get up the "autocomplete" list og available variables and press enter when MyVariable is selected. - This works fine.

If i however hava a text: Text1Text2 and I want to insert MyVariable&nbsp;in between it results in this:

Text1%MyVariable% **myv** Text2 (where myv was the text i entered before I found my variable in the AutoComplete window and pressed enter), so now I need to delete the 3 letters i wrote.

Again it might be that i use it a different way that it is meant to, but it is sometimes easy to forget to delete those 3 letters..

&nbsp;

Regards

Magne

&nbsp;

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![stevage](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/bc8723/32.png) [@stevage](https://www.finalbuilder.com/forums/u/stevage)
#### Post date: [March 8, 2007, 2:05am UTC](https://www.finalbuilder.com/forums/t/strange-behavior-when-using-variables-in-text/2794/2 "2007-03-08T02:05:52Z")

</div>

Yes, this is a bug I have noticed. In FB’s defence, getting the user interface stuff right on all those special cases is hard!  
  
A work around: type a space before you start typing the variable name, then press left. So in your case:  
1. Put the cursor between Text1 and Text2  
2. Type a space  
3. Press left (so the text reads Text1| Text2 (the | is the cursor))  
4. Type %Myv. The text now reads: Text1%Myvariable% Text2  
5. Delete the space.  
  
Steve
