# Is it possible to dynamically rename a variable?

**URL:** <https://forum.kirupa.com/t/is-it-possible-to-dynamically-rename-a-variable/69513>\
**Category:** flash\
**Created:** [November 4, 2004, 10:41pm UTC](https://forum.kirupa.com/t/is-it-possible-to-dynamically-rename-a-variable/69513 "2004-11-04T22:41:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bben76](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@bben76](https://forum.kirupa.com/u/bben76)\
**Post date:** [November 4, 2004, 10:41pm UTC](https://forum.kirupa.com/t/is-it-possible-to-dynamically-rename-a-variable/69513/1 "2004-11-04T22:41:20Z")

</div>

[FONT=Verdana]I need to dynamically rename a variable.

For example, I have declared this variable:

var BName = 1;

But I want to change the _name_ of the variable BName to BName01 at runtime. Not the value, I need the value to remain the same.

Is this possible?[/FONT]
