# How do i set a variable to another text fields text value?

**URL:** <https://forum.kirupa.com/t/how-do-i-set-a-variable-to-another-text-fields-text-value/7355>\
**Category:** flash\
**Created:** [October 29, 2002, 8:25am UTC](https://forum.kirupa.com/t/how-do-i-set-a-variable-to-another-text-fields-text-value/7355 "2002-10-29T08:25:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![3dron](https://avatars.discourse-cdn.com/v4/letter/3/2acd7d/32.png) [@3dron](https://forum.kirupa.com/u/3dron)\
**Post date:** [October 29, 2002, 8:25am UTC](https://forum.kirupa.com/t/how-do-i-set-a-variable-to-another-text-fields-text-value/7355/1 "2002-10-29T08:25:09Z")

</div>

Is this valid:

\_global.TxtEnter = Label1.text;

It doesn’t seem to work. How can I get the value of the text in Entry1 over to my other variable?

Ron

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2002, 8:54am UTC](https://forum.kirupa.com/t/how-do-i-set-a-variable-to-another-text-fields-text-value/7355/2 "2002-10-29T08:54:11Z")

</div>

Could you explain your naming conventions?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [October 29, 2002, 3:54pm UTC](https://forum.kirupa.com/t/how-do-i-set-a-variable-to-another-text-fields-text-value/7355/3 "2002-10-29T15:54:43Z")

</div>

just like this: (I think that’s wut ya mean)  
variable = textfield (textfield=variable name of the textfield)  
or  
variable = textfield.text(textfield=instance name of the textfield [FMX only!])  
=)
