New topic: Combo Box
<http://forums.realsoftware.com/viewtopic.php?t=37726> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message S.Rampling Post subject: Combo BoxPosted: Sat Feb 19, 2011 12:40 am Joined: Sat Jan 08, 2011 4:47 pm Posts: 81 Location: Sydney, Australia How do I assign variables to a combobox and then use them in an if..then..else statement For example in the following code Code: If Cmb1.text = "Day 1" Then Updateday1 elseif Cmb1.text = "Day 2" Then Updateday2 elseif Cmb1.text = "Day 3" Then Updateday3 elseif Cmb1.text = "Day 4" Then Updateday4 elseif Cmb1.text = "Day 5" Then Updateday5 elseif Cmb1.text = "Day 6" Then Updateday6 end if If I want someone to enter a name instead of "Day 1", how would I display that name in the Combobox and then be able to use it instead of "Day 1", the Name entered would also need to be saved in the DB. Thanks Shane. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
