# Help concatenate variables

**URL:** <https://forum.kirupa.com/t/help-concatenate-variables/215893>\
**Category:** Uncategorized\
**Created:** [February 11, 2007, 9:23pm UTC](https://forum.kirupa.com/t/help-concatenate-variables/215893 "2007-02-11T21:23:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wamkihok](https://avatars.discourse-cdn.com/v4/letter/w/d07c76/32.png) [@wamkihok](https://forum.kirupa.com/u/wamkihok)\
**Post date:** [February 11, 2007, 9:23pm UTC](https://forum.kirupa.com/t/help-concatenate-variables/215893/1 "2007-02-11T21:23:16Z")

</div>

hi everybody, maybe someone can help me.  
my problem is:  
I have a number of checkboxes, which are keys with the following code :  
key1.onRelease = function() { myVar1 = “1”};  
key2.onRelease = function() { myVar2 = “16”}  
key3.onRelease = function() { myVar1 = “24”};…etc  
variables are numbers 0-6,  
I want to display in a dynamic textfield all these values in order, that means  
the return must be : 11624…  
I have tryed with :  
myCode = myVar1+myVar2+myVar3+…, myCode is the var name of the dynamic textfield, but the result is NaN in FP8 and 0 in FP6. where is the mistake, or how must I proceed? thank you in advance.
