# Getting data from comboBox

**URL:** <https://forum.kirupa.com/t/getting-data-from-combobox/248093>\
**Category:** Uncategorized\
**Created:** [January 3, 2008, 6:47pm UTC](https://forum.kirupa.com/t/getting-data-from-combobox/248093 "2008-01-03T18:47:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![01jimmy](https://avatars.discourse-cdn.com/v4/letter/0/eb9ed0/32.png) [@01jimmy](https://forum.kirupa.com/u/01jimmy)\
**Post date:** [January 3, 2008, 6:47pm UTC](https://forum.kirupa.com/t/getting-data-from-combobox/248093/1 "2008-01-03T18:47:45Z")

</div>

I’m having trouble with this. I’ve got a comboBox with text labels assigned to numerical data. I can’t seem to get the data out of the comboBox so I can do something with it.

My end result. I need to build a drop down box with city names in it. Selecting a city will then change the value of lat\_ti.text and long\_ti.text to the latitude and longitude for that city, which I will provide.
