1、Private Sub Command2_Click()
If Check1.Value = 1 Then
if Option1.Value = True then
a = MsgBox("卤肉饭" & Text1.Text & "份" & vbCr & "(自取)共计" & Text1.Text * 20 & "元", vbOKOnly, "账单")
ElseIf
a = MsgBox("卤肉饭" & Text1.Text & "份" & vbCr & "(外送)共计" & Text1.Text * 20 + 20 & "元",
2、vbOKOnly, "账单")
End If
If Check2.Value = 1 Then
if Option1.Value = True then
a = MsgBox("鸡腿饭" & Text2.Text & "份" & vbCr & "(自取)共计" & Text2.Text * 15 & "元", vbOKOnly, "账单")
Else
a = MsgBox("鸡腿饭" & Text2.Text & "份" & vbCr & "(外送)共计" & Text2.Text * 15 + 20 & "元", vb
3、OKOnly, "账单")
End If
If Check3.Value = 1 Then
if Option1.Value = True then
a = MsgBox("排骨饭" & Text3.Text & "份" & vbCr & "(自取)共计" & Text3.Text * 10 & "元", vbOKOnly, "账单")
Else
a = MsgBox("排骨饭" & Text3.Text & "份" & vbCr & "(外送)共计" & Text3.Text * 10 + 20 & "元",
4、vbOKOnly, "账单")
End If
If Check4.Value = 1 Then
if Option1.Value = True then
a = MsgBox("美饿美特餐" & Text4.Text & "份" & vbCr & "(自取)共计" & Text4.Text * 9 & "元", vbOKOnly, "账单")
Else
a = MsgBox("美饿美特餐" & Text4.Text & "份" & vbCr & "(外送)共计" & Text4.Text * 9 + 20 & "元", v
5、bOKOnly, "账单")
End If
Command1.Enabled = Truen
Command2.Enabled = False
If Check1.Value = 0 And Check2.Value = 0 And Check3.Value = 0 And Check4.Value = 0 Then
a = MsgBox("您未点单", vbOKOnly, "账单")
End If
End Sub
Dim a As String, i As Integer
Private Sub Check1_Clic
6、k()
Text1.SetFocus
End Sub
Private Sub Check2_Click()
Text2.SetFocus
End Sub
Private Sub Check3_Click()
Text3.SetFocus
End Sub
Private Sub Check4_Click()
Text4.SetFocus
End Sub
Private Sub Command1_Click()
Text1.Text = ""
Check1.Value = 0
Text2.Text = ""
Check2.Value = 0
Text3.Text = ""
Check3.Value = 0
Text4.Text = ""
Check4.Value = 0
Command1.Enabled = False
Command2.Enabled = True
End Sub