Chủ Nhật, 26 tháng 5, 2013

code listbox cộng trừ nhân chia




Private Sub Command1_Click()
If list1llistindex = 0 Then Text3.Text = Val(Text1.Text) + Val(Text2.Text)
If list1llistindex = 1 Then Text3.Text = Val(Text1.Text) - Val(Text2.Text)
If list1llistindex = 2 Then Text3.Text = Val(Text1.Text) * Val(Text2.Text)
If list1llistindex = 3 Then Text3.Text = Val(Text1.Text) / Val(Text2.Text)
If list1llistindex = 4 Then Text3.Text = Val(Text1.Text) Mod Val(Text2.Text)


End Sub

Private Sub Command2_Click()
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
End Sub

Private Sub Form_Load()
List1.AddItem "+", 0
List1.AddItem "-", 1
List1.AddItem "*", 2
List1.AddItem "/", 3
List1.AddItem "Mod", 4
End Sub


1 nhận xét:

  1. What are the best casinos in the US? - DRMCD
    The best casinos in the United States are 공주 출장마사지 now open. While most of the state 거제 출장마사지 has legalized sports betting, 대전광역 출장마사지 it 삼척 출장마사지 is still 익산 출장안마 not legal. This

    Trả lờiXóa