# Functions and variable

**URL:** <https://forum.kirupa.com/t/functions-and-variable/269762>\
**Category:** Uncategorized\
**Created:** [September 1, 2008, 8:03am UTC](https://forum.kirupa.com/t/functions-and-variable/269762 "2008-09-01T08:03:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brndn](https://avatars.discourse-cdn.com/v4/letter/b/dec6dc/32.png) [@brndn](https://forum.kirupa.com/u/brndn)\
**Post date:** [September 1, 2008, 8:03am UTC](https://forum.kirupa.com/t/functions-and-variable/269762/1 "2008-09-01T08:03:12Z")

</div>

I know this might seem like a stupid question  
but how do i assign a var to a function

ID = evt.target.selectedItem.id;  
_level0.map\_cont.mapContainer.map.map.markerContainer.marker_[ID].mcContainer.ActivateChampDetails();

I know this is the wrong procedure.

thanks to any one who can bump this quick one.

cheers

brndn
