可以將以下既野轉成Else if 嗎..?請幫幫問..
Dim sum As Double = 0
If chkDrugs.Checked Then
sum +=12.51
End If
If chkDental.Checked Then
sum+ =9.68
End If
If chkVision.Checked Then
sum+=1.5
End If
If chkMedical.Checked Then
sum +=25.25
End If
txtTotal.Text = Cstr(sum)
End Sub
另外,想問呢題可唔可以轉做Loop嫁..?有既係點..??
仲有LOOP有冇分邊幾種,定係得一種..? THX