# Copying Variables

**URL:** https://www.finalbuilder.com/forums/t/copying-variables/4005
**Category:** Feature Requests
**Created:** [January 22, 2009, 11:59am UTC](https://www.finalbuilder.com/forums/t/copying-variables/4005 "2009-01-22T11:59:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jonrobertson](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/d2c977/32.png) [@jonrobertson](https://www.finalbuilder.com/forums/u/jonrobertson)
#### Post date: [January 22, 2009, 11:59am UTC](https://www.finalbuilder.com/forums/t/copying-variables/4005/1 "2009-01-22T11:59:59Z")

</div>

The Variables Editor allows me to copy a variable and paste it, which I suppose is mainly for copying variables between projects.&nbsp; It is nice, but I wanted to use this to duplicate variables.&nbsp; For example, to create another variable with nearly identical "properties" but a different name.&nbsp; I can't paste a variable if that variable already exists with the same name.

The workaround is to rename the original variable, paste, then go back to the renamed variable and make any desired changes.

A much better solution would be to prompt the user (include both OK & Cancel buttons), for a new variable name instead of the current "A variable named: - already exists" dialog.

Thanks!

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 27, 2009, 3:20am UTC](https://www.finalbuilder.com/forums/t/copying-variables/4005/2 "2009-01-27T03:20:11Z")

</div>

I have implemented a simple work around for the next build, finalbuilder will append a number after the copy if the variable already exists. Try this with the next build… if that is too unintuitive then we’ll look at adding the prompt.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 27, 2009, 6:58am UTC](https://www.finalbuilder.com/forums/t/copying-variables/4005/3 "2009-01-27T06:58:41Z")

</div>

Hi Jon   
  
 Here’s a build with the fix :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/620/FB620\_1278.exe](https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1278.exe)
