1,451
社区成员
发帖
与我相关
我的任务
分享
Private Sub Combo1_Click(Index As Integer)
If Val(Text1.Text) < Val(Combo1(i).Text) Then
MsgBox "您当前没有那么多的金币!", vbInformation, "Xy系列软件"
Else
For i = 0 To 11
Text1.Text = Val(Text1.Text) - Val(Combo1(i).Text)
Text2.Text = Val(Text2.Text) + Val(Combo1(i).Text)
Next
End If
End Sub
Private Sub Combo1_Click(Index As Integer)
Dim lTotal As Long
Dim lBet As Long
lTotal = Val(Text1) + Val(Text2) '总金币'
For i = 0 To 11
lBet = lBet + Val(Combo1(i).Text) '下注合计'
Next
If lTotal < lBet Then
MsgBox "您当前没有那么多的金币!", vbInformation, "Xy系列软件"
Else
Text1 = lTotal - lBet '剩余金币'
Text2 = lBet
End If
End Sub