# Another dynamic text problem

**URL:** <https://forum.kirupa.com/t/another-dynamic-text-problem/123545>\
**Category:** Uncategorized\
**Created:** [September 24, 2004, 4:08pm UTC](https://forum.kirupa.com/t/another-dynamic-text-problem/123545 "2004-09-24T16:08:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JP\_West](https://avatars.discourse-cdn.com/v4/letter/j/ac8455/32.png) [@JP\_West](https://forum.kirupa.com/u/JP_West)\
**Post date:** [September 24, 2004, 4:08pm UTC](https://forum.kirupa.com/t/another-dynamic-text-problem/123545/1 "2004-09-24T16:08:44Z")

</div>

I’ve loaded a text file with my variables in it, and am trying to make buttons change the content of text box to one of my several variables… basicly each button corresponds to a variable that should display a text string.

Can’t get the button to load the variable, when clicked the box displays “undefined”.

Any help would be great.

\*\*All I really need is a code chunk for the variable loading (which I have) and for the individual button (which is where my problem lies)
