4de游乐场吧 关注:80贴子:2,317
  • 0回复贴,共1

计价器~lin

只看楼主收藏回复

Private Sub Command1_Click()
If Text1.Text <= 5 Then
   Label3.Caption = 3.5 * Text1.Text
End If
If Text1.Text > 5 And Text1.Text <= 10 Then
   Label3.Caption = 3.25 * Text1.Text
End If
If Text1.Text > 10 And Text1.Text <= 20 Then
   Label3.Caption = 3.1 * Text1.Text
End If
If Text1.Text > 20 Then
   Label3.Caption = 2.85 * Text1.Text
End If
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Label3.Caption = ""
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Form_Load()
End Sub



IP属地:北京1楼2009-06-03 13:45回复