# Is combobox the hell it seems?

**URL:** <https://forum.kirupa.com/t/is-combobox-the-hell-it-seems/121496>\
**Category:** Uncategorized\
**Created:** [September 3, 2004, 8:45am UTC](https://forum.kirupa.com/t/is-combobox-the-hell-it-seems/121496 "2004-09-03T08:45:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abm](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@abm](https://forum.kirupa.com/u/abm)\
**Post date:** [September 3, 2004, 8:45am UTC](https://forum.kirupa.com/t/is-combobox-the-hell-it-seems/121496/1 "2004-09-03T08:45:30Z")

</div>

It must be…

I’m trying to use a variable and make it assume a diferent value acording to the option selected on the combobox and it’s been hell for me.

Supose I have a variable named “favouritesport”…  
I would like to have a combobox with 3 items (baseball, football, basketball).  
As you choose one of the sports the variable should change.

Ex. If someone chose baseball than it woul make favouritesport=baseball

Can anyone help?

Thanks in advance…
