I am creating a program with a Drop Down-list combo Box which contain the items: a
,b
,c
and d
.
What I want to do is, when I select an item in the ComboBox and then click a button, the x variable will change. For example when I select b
in the ComboBox, the x value will change to 2
.
I need this variable for another function. How can I change the x
variable?