# Variable completion removing trailing characters

**URL:** https://www.finalbuilder.com/forums/t/variable-completion-removing-trailing-characters/3141
**Category:** Bugs
**Created:** [August 21, 2009, 5:46am UTC](https://www.finalbuilder.com/forums/t/variable-completion-removing-trailing-characters/3141 "2009-08-21T05:46:06Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![simon\_page](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/8baadc/32.png) [@simon\_page](https://www.finalbuilder.com/forums/u/simon_page)
#### Post date: [August 21, 2009, 5:46am UTC](https://www.finalbuilder.com/forums/t/variable-completion-removing-trailing-characters/3141/1 "2009-08-21T05:46:06Z")

</div>

If you use variable completion to replace an existing variable that is within other characters then after the replacement the other characters are still intact as expected, e.g:   
  
 1) Text has: “%FBPROJECTDIR%\Test”   
 2) Put cursor inside the text and from variable completion select say FBDIR and the result is “%FBDIR%\Test”.   
  
 However if you want to insert a new variable then the remaining text is lost, e.g.:   
  
 1) Text has: “\Test” after removing a hard coded path.   
 2) Put cursor after first quote and from the variable completion select variable and the remainder of the line is removed leaving:   
  
 "%FBDIR%   
  
 The only workaround is to ensure there is a space after the cursor location, which incidentally gets removed after the variable completion.   
  
 FB5 worked correctly in both cases. Using FB 6.3.0.1666

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [August 24, 2009, 2:30am UTC](https://www.finalbuilder.com/forums/t/variable-completion-removing-trailing-characters/3141/2 "2009-08-24T02:30:48Z")

</div>

Hi Simon,   
  
 We’ve checked a fix in for this issue, will let you know as soon as a new build is available.   
  
 Regards,   
 Paul.
