Rano AH

Rano AH

  • NA
  • 176
  • 111.9k

Function that check comboBoxes and the selectedIndex

Mar 18 2014 5:24 AM

Hello All


I have 4 comboBoxes that contains 6 images/Items

I need to create a function that takes the comboBoxes and return the value of selectedIndex as Text
Example, if user selected image# 2 from ComboBox1 or ComboBox2 or ComboBox3 or ComboBox4 then the function will return the text: "You have selected Canada from ComboBox# --")
Samething if the user selected image Number five from ComboBox1 or ComboBox2 or ComboBox3 or ComboBox4 then the function will return the text "You have selected Italy from from ComboBox# --")

I think I need forloop to check which item and from which comboBox the user has chosen. But not successful with the logic :-(


CB1  ValueOfSelectedIndex
======  =====================
image1  USA
image2  CANADA 
image3  USA 
image4  France
image5  Italy
image6  UK


CB2  ValueOfSelectedIndex
======  =====================
image1  USA
image2  CANADA 
image3  USA 
image4  France
image5  Italy
image6  UK


CB3  ValueOfSelectedIndex
======  =====================
image1  USA
image2  CANADA 
image3  USA 
image4  France
image5  Italy
image6  UK


CB4  ValueOfSelectedIndex
======  =====================
image1  USA
image2  CANADA 
image3  USA 
image4  France
image5  Italy
image6  UK


Answers (1)