简单VB帮忙看一下,很快采纳

2024-12-20 00:04:09
推荐回答(1个)
回答1:

Private Sub Command1_Click()
sj= Combo1.ListCount - 1
select case sj
Case sj=0
Text3 = vaL(Text1) + val(Text2 )
Case sj=1
Text3 = Int(val(Text1) - val(Text2) )
Case sj=2
Text3 = Int(val(Text1) * val(Text2))
Case sj=3
Text3 = Int(val(Text1) / val(Text2) )
Case sj=4
Text3 = Int(val(Text1) Mod val(Text2))
End Select
End Sub