读书人

[请问] 运行时异常6 溢出

发布时间: 2012-01-20 18:53:53 作者: rapoo

[请教] 运行时错误6 溢出
在程序里有这么一句代码:

dim tm as Double
tm=3600*24*365

结果一运行就出现错误提示:运行时错误 ‘6’ 溢出


请教高手是怎么回事啊?如何解决?谢谢~~

[解决办法]
int*int 返回int

tm=3600
tm=tm*24*365


*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码)
http://feiyun0112.cnblogs.com/

读书人网 >VB

热点推荐