vb 将数字格式化为金额,这个更像是一个自动计算程序,根据用户输入的单位、数量、价格等参数,自动计算出金额,这才是程序要表达的功能,相差代码:
Private Sub Text1_LostFocus(Index As Integer)
Text1(Index).BackColor = &H80000005
If Index = 3 Then Text1(3) = Format(Text1(3), "0.00")
End Sub
SHOW FULL COLUMNS FROM `jrk_downrecords` [ RunTime:0.000988s ]
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.076186s ]
SHOW FULL COLUMNS FROM `jrk_tagrecords` [ RunTime:0.000921s ]
SELECT * FROM `jrk_tagrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 20 [ RunTime:0.001024s ]
SHOW FULL COLUMNS FROM `jrk_member` [ RunTime:0.000915s ]
SELECT `id`,`username`,`userhead`,`usertime` FROM `jrk_member` WHERE `status` = 1 ORDER BY `usertime` DESC LIMIT 10 [ RunTime:0.002963s ]
SHOW FULL COLUMNS FROM `jrk_searchrecords` [ RunTime:0.000841s ]
SELECT * FROM `jrk_searchrecords` WHERE `status` = 1 ORDER BY `num` DESC LIMIT 5 [ RunTime:0.003509s ]
SELECT aid,title,count(aid) as c FROM `jrk_downrecords` GROUP BY `aid` ORDER BY `c` DESC LIMIT 10 [ RunTime:0.014505s ]
SHOW FULL COLUMNS FROM `jrk_articles` [ RunTime:0.001055s ]
UPDATE `jrk_articles` SET `hits` = 2 WHERE `id` = 294524 [ RunTime:0.014929s ]