# Set Variable to variable? Please help

**URL:** <https://forum.kirupa.com/t/set-variable-to-variable-please-help/200514>\
**Category:** flash\
**Created:** [September 12, 2006, 8:45pm UTC](https://forum.kirupa.com/t/set-variable-to-variable-please-help/200514 "2006-09-12T20:45:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aerahn](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@aerahn](https://forum.kirupa.com/u/aerahn)\
**Post date:** [September 12, 2006, 8:45pm UTC](https://forum.kirupa.com/t/set-variable-to-variable-please-help/200514/1 "2006-09-12T20:45:41Z")

</div>

ok, this should be an easy one and I always seem to forget this…

I have this code and in it “quiz\_name\_str” is a variable. Can anyone tell me how to evaluate this so that the variable gets set as the **value** of “quiz\_name\_str”, instead of “quiz\_name\_str”? I was thinking eval(), but that didn’t work and I know this should be simple, but now I am stumped.

The code:  
[COLOR=red]quizData.data.quiz\_name\_str = “test”;[/COLOR]

Thanks!!
