# Write to text file: variable auto-complete deletes the following string

**URL:** <https://www.finalbuilder.com/forums/t/write-to-text-file-variable-auto-complete-deletes-the-following-string/3181>\
**Category:** Bugs\
**Created:** [November 17, 2009, 7:38am UTC](https://www.finalbuilder.com/forums/t/write-to-text-file-variable-auto-complete-deletes-the-following-string/3181 "2009-11-17T07:38:49Z")\
**Posts on this page:** 4\
**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:** [November 17, 2009, 7:38am UTC](https://www.finalbuilder.com/forums/t/write-to-text-file-variable-auto-complete-deletes-the-following-string/3181/1 "2009-11-17T07:38:49Z")

</div>

The "New Content" field seems to have a problem when using the variable auto-complete feature.

Reproducing:

1. Create a "Write to Text file" action.
2. this\_gets\_deleted %ANYVARIABLE%

3. Position your text-cursor before the word "this\_gets\_deleted" and type "%". When the variable-auto-complete box appears, hit enter to select the first variable in the list
4. Note that "this\_gets\_deleted" has disappeared.

This happens no matter how much whitespace is between your auto-completed variable and "this\_gets\_deleted," regardless of what text is used in place of "this\_gets\_deleted," regardless of which variable you choose from the auto-complete prompt, and is not undo-able.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [November 18, 2009, 2:19am UTC](https://www.finalbuilder.com/forums/t/write-to-text-file-variable-auto-complete-deletes-the-following-string/3181/2 "2009-11-18T02:19:26Z")

</div>

Which build are you using? We fixed a bug like this in build 6.3.0.1671 and the current release build is 6.3.0.1712, I’m not able to reproduce this here.

---

<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:** [January 12, 2010, 3:49am UTC](https://www.finalbuilder.com/forums/t/write-to-text-file-variable-auto-complete-deletes-the-following-string/3181/3 "2010-01-12T03:49:04Z")

</div>

Sorry for the late reply. Just checked and I'm on 6.3.0.1712. Just tested and reproduced following my steps exactly.

I'm about to download the latest release (6.3.0.1855) and see if it's fixed there. Stay tuned.

---

<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:** [January 12, 2010, 3:52am UTC](https://www.finalbuilder.com/forums/t/write-to-text-file-variable-auto-complete-deletes-the-following-string/3181/4 "2010-01-12T03:52:02Z")

</div>

Just upgraded to 6.3.0.1855 (verified through help -\> about) and can still reproduce this in a new file following my steps exactly.
