Overflow when generating static pages in Tsys: ' CInt ' _ Application Tips

Source: Internet
Author: User
Today in adding articles to generate a static page is that an overflow occurred: ' CInt '.
After the investigation, we know:
Originally is CInt does not support too big number, estimate has a numerical range, therefore replaces clng to solve the problem.
Modify the 107th line in the manage/include/createfile_fun.asp under Tsys.
Copy Code code as follows:
If i=0 Then
' Build File Store path '
' Original hint CInt overflow filepath=createfilesavetopath (CInt (NewsId), Rs1 ("Addtime"), Rs1 ("Directory"))
' Original hint CInt overflow 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
' Original hint CInt overflow 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.