日期:2014-05-17  浏览次数:20840 次

asp中怎样把字符转成数字?然后进行比较,用cint会溢出
asp中怎样把字符转成数字?然后进行比较,用cint会溢出

这是我的部分代码

dim   aobi_now,aobi_last
aobi_now   =   cint(rs_rull( "extcredits2 "))
aobi_last   =   aobi_now-aobi
if   aobi_last   <   0   then
    response.Write   " <script> alert( '对不起,您的奥币余额不足! ');history.back(); </script> "




------解决方案--------------------
用cdbl