1个回答
2013-11-24
展开全部
Dim h(2), m(2)
Private Sub Command1_Click()
Text1.Text = Now()
h(0) = Hour(Now)
m(0) = Minute(Now)
End Sub
Private Sub Command2_Click()
Text2.Text = Now()
h(1) = Hour(Now)
m(1) = Minute(Now)
End Sub
Private Sub Command3_Click()
Text3.Text = h(1) - h(0) & " : " & m(1) - m(0)
End Sub
Private Sub Command1_Click()
Text1.Text = Now()
h(0) = Hour(Now)
m(0) = Minute(Now)
End Sub
Private Sub Command2_Click()
Text2.Text = Now()
h(1) = Hour(Now)
m(1) = Minute(Now)
End Sub
Private Sub Command3_Click()
Text3.Text = h(1) - h(0) & " : " & m(1) - m(0)
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询