# Simple Variable question - Literal Value for Expression

**URL:** <https://forum.kirupa.com/t/simple-variable-question-literal-value-for-expression/100941>\
**Category:** Uncategorized\
**Created:** [February 4, 2004, 1:43am UTC](https://forum.kirupa.com/t/simple-variable-question-literal-value-for-expression/100941 "2004-02-04T01:43:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![optimis](https://avatars.discourse-cdn.com/v4/letter/o/ac91a4/32.png) [@optimis](https://forum.kirupa.com/u/optimis)\
**Post date:** [February 4, 2004, 1:43am UTC](https://forum.kirupa.com/t/simple-variable-question-literal-value-for-expression/100941/1 "2004-02-04T01:43:54Z")

</div>

I know this is basic guys, but please help -

First a fabric button sets:  
\_root.fabricbuttonselected="\_root.fabric01";

then the color button sets:  
\_root.selectedcolor=\_root.fabricbuttonselected + “\_chip10\_name”;

This returns the name of a variable:  
“\_root.fabric01\_chip10\_name”

however I have preset the variable to “Rose”

\_root.fabric01\_chip10\_name = “Rose”;

My dynamic text box is set to:  
\_root.selectedcolor

but instead of displaying “Rose” it displays"\_root.fabric01\_chip10\_name"

Basically I need to get the literal value to equal an expression- how do I do this???

I’ve done this before, but it’s slipping my mind.

Thanks

-DWC
