請輸入專案類型(網站專案或者應用程式專案):
visual studio 2013
我正在做一個背英文單字的程式
其中有一塊是單字測驗
在測驗裡面我是用combobox來選擇選項
而選完之後就要按button來交
每一題答對會讓總得分加一分
但是我弄出來他的得分都不會累加
只會跑出單次的分數
請問要怎麼寫才能讓分數累加呢>_<
我的程式碼
dim i as integer
select case combobox1.selectindex '日期
case 0
if combobox2.selectindex = 0 then i = i + 1
if combobox3.selectindex = 0 then i = i + 1
case 1
if combobox2.selectindex = 1 then i = i + 1
if combobox3.selectindex = 1 then i = i + 1
end select
label14.text = i