# Getting string from variable name

**URL:** <https://forum.kirupa.com/t/getting-string-from-variable-name/205412>\
**Category:** Uncategorized\
**Created:** [October 29, 2006, 10:19am UTC](https://forum.kirupa.com/t/getting-string-from-variable-name/205412 "2006-10-29T10:19:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blizzardtweaker](https://avatars.discourse-cdn.com/v4/letter/b/a3d4f5/32.png) [@blizzardtweaker](https://forum.kirupa.com/u/blizzardtweaker)\
**Post date:** [October 29, 2006, 10:19am UTC](https://forum.kirupa.com/t/getting-string-from-variable-name/205412/1 "2006-10-29T10:19:56Z")

</div>

im not sure how to explain this but, heres the code:

number = 1  
person1 = “some stuff”  
person2 = “other stuff”  
trace(“person”+number)  
//i want to get “some stuff”, but instead get “person1”

the variable “number” is obtained from an external source, how do i get the corresponding string for “person”+number, in this case person1, which is “some stuff”?

sry if im unclear, but i really dont know how to put this into words…  
thx in advance
