当前位置:首页 > ASP教程 > 应用技巧

TSYS中生成静态页时溢出: 'CInt'

今天在添加文章生成静态页是,发生了 溢出: 'cint'.
经查得知:
原来是cint不支持太大的数字,估计有一个数值范围吧,所以换成clng就解决问题了。
修改tsys下的manage/include/createfile_fun.asp中的第107行.
            
复制代码 代码如下:
if i=0 then 
                '生成文件存放路径 
               '原来的提示cint溢出filepath=createfilesavetopath(cint(newsid),rs1("addtime"),rs1("directory")) 
               '原来的提示cint溢出filelocalpath=createfilelocalpath(cint(newsid),rs1("addtime"),rs1("directory")) 
                filepath=createfilesavetopath(clng(newsid),rs1("addtime"),rs1("directory")) 
                filelocalpath=createfilelocalpath(clng(newsid),rs1("addtime"),rs1("directory")) 
            else 
               '原来的提示cint溢出filepath=createfilesavetopath(cint(newsid),rs1("addtime"),rs1("directory")) 
                filepath=createfilesavetopath(clng(newsid),rs1("addtime"),rs1("directory")) 
                filepath=left(filepath,(len(filepath)-len(def_fileextension)))&"_"& i & def_fileextension

【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!

相关教程推荐

其他课程推荐