找回密码
 注册
搜索
查看: 580|回复: 2

计时小软件(免费) 个人原创

[复制链接]
发表于 2007-8-2 10:43:48 | 显示全部楼层 |阅读模式
分别计时功能,钞表
 楼主| 发表于 2007-8-2 16:56:38 | 显示全部楼层
【文件名】:0782@52RD_秒表(1).rar
【格 式】:rar
【大 小】:4K
【简 介】:
【目 录】:无,源代码如下

Option Explicit
Dim ss%, mm%, hh%, ww%, na%
Dim time_rec As String
Private Sub Command1_Click()
Command4.Enabled = True
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
Command5.Enabled = True
Timer1.Enabled = False
Call sequ
time_rec = Str(na) + "." + Text1.Text
List1.AddItem time_rec
End Sub
Private Sub Command3_Click()
Command5.Enabled = True
Call sequ
time_rec = Str(na) + "." + Text1.Text
List1.AddItem time_rec
End Sub
Private Sub Command4_Click()
Timer1.Enabled = False
ww = 0: ss = 0: mm = 0: hh = 0
Text1 = Format$(hh, "00") + ":" + Format$(mm, "00") + ":" + Format$(ss, "00") + ":" + Format$(ww, "00")
End Sub
Private Sub Command5_Click()
List1.Clear
Command4.Enabled = False
Command5.Enabled = False
Call sequ
End Sub
Private Sub Command6_Click()
End
End Sub
Private Sub Form_Load()
Timer1.Enabled = False
Text1 = Format$(hh, "00") + ":" + Format$(mm, "00") + ":" + Format$(ss, "00") + ":" + Format$(ww, "00")
Command4.Enabled = False
Command5.Enabled = False
End Sub

Private Sub Timer1_Timer()
ww = ww + 1
If ww >= 100 Then
ss = ss + 1
ww = 0
If ss >= 60 Then
mm = mm + 1
ss = 0
If mm >= 60 Then
hh = hh + 1
mm = 0
End If
End If
End If
Text1 = Format$(hh, "00") + ":" + Format$(mm, "00") + ":" + Format$(ss, "00") + ":" + Format$(ww, "00")
End Sub
Public Sub sequ()
Static sequence
sequence = sequence + 1
na = sequence
If Command5.Enabled = False Then
sequence = 0
End If
End Sub

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
点评回复

使用道具 举报

 楼主| 发表于 2007-8-3 08:32:04 | 显示全部楼层
经过小小修正,增加列表序号
【文件名】:0783@52RD_秒表.rar
【格 式】:rar
【大 小】:4K
【简 介】:
【目 录】:见上

源码同上

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
点评回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies

本版积分规则

Archiver|手机版|小黑屋|52RD我爱研发网 ( 沪ICP备2022007804号-2 )

GMT+8, 2025-2-25 01:16 , Processed in 0.046434 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表