# Inserting a variable into a dynamic text field

**URL:** https://forum.kirupa.com/t/inserting-a-variable-into-a-dynamic-text-field/218339
**Category:** Uncategorized
**Created:** [March 6, 2007, 10:26pm UTC](https://forum.kirupa.com/t/inserting-a-variable-into-a-dynamic-text-field/218339 "2007-03-06T22:26:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dalewb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dalewb/32/3029_2.png) [@dalewb](https://forum.kirupa.com/u/dalewb)
#### Post date: [March 6, 2007, 10:26pm UTC](https://forum.kirupa.com/t/inserting-a-variable-into-a-dynamic-text-field/218339/1 "2007-03-06T22:26:15Z")

</div>

I know you can read the contents of a text file into a dynamic text field at runtime. Can you also insert the string contents of a variable into a dynamic text field at runtime? I simply want a dynamic text field that says “Welcome back, \<username\>” I am doing it right now with a static text field and a dynamic one, but if the username is really short, the whole thing is not centered and looks weird. Optimally, it should all be part of one element on the stage. I can’t think of a solution though.
