# Vars in reference

**URL:** <https://forum.kirupa.com/t/vars-in-reference/140346>\
**Category:** Uncategorized\
**Created:** [March 10, 2005, 8:27am UTC](https://forum.kirupa.com/t/vars-in-reference/140346 "2005-03-10T08:27:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VoS](https://avatars.discourse-cdn.com/v4/letter/v/22d042/32.png) [@VoS](https://forum.kirupa.com/u/VoS)\
**Post date:** [March 10, 2005, 8:27am UTC](https://forum.kirupa.com/t/vars-in-reference/140346/1 "2005-03-10T08:27:08Z")

</div>

Hi =)

i need help with a small bit of code…  
i have this statement

wx=buttons.games.\_x+buttons.\_x;

were i want the word games to be a variable, as the mc it is refering to changes  
i though i could do somethin glike this

wx=buttons.[qw].\_x+buttons.\_x;

and have qw = “games” but that does not work

any help please?

//VoS
