VB 6.0将时、分、秒转换为时间,就是把输入文本框中的内容,重新组合,并添加连接符,形成人们视觉习惯上的时间格式。
其实实现这个功能,不两行代码就可实现了:
Private Sub Command2_Click()
t = TimeSerial(Text1, Text2, Text3)
Label4.Caption = "时间为:" & t
End Sub
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.001094s ]
SELECT `a`.`aid`,`a`.`title`,`a`.`create_time`,`m`.`username` FROM `jrk_downrecords` `a` INNER JOIN `jrk_member` `m` ON `a`.`uid`=`m`.`id` WHERE `a`.`status` = 1 GROUP BY `a`.`aid` ORDER BY `a`.`create_time` DESC LIMIT 10 [ RunTime:0.093202s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.006932s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.002297s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.004971s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.008343s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.001227s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.006895s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.023368s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001378s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 290999 [ RunTime:0.015893s ]