methods - ComboBox strategies to function -


i have 4 combo box same follows:

select case combobox1.selecteditem case 0  str=str & "' and" case 1 str= str & "'" end case  select case combobox2.selected item  case 0  str=str & "' and" case 1 str= str & "'" end case 

similarly other 2 comboboxes have same body

i want replace code block method call , implement select clause body in method body , call when required.

please give me solution

create method takes input combobox selected index i.e integer in method write follows:

method1(int x) { select case x  case 0  str=str & "' and" case 1 str= str & "'" end case } 

call method1 required.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -