首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

数据溢出,帮忙解决下解决思路

2012-03-01 
数据溢出,帮忙解决下PublicFunctiongetImgW(IMGPath,maxW,maxH)Dimscale,scale1,scale2DimimgW1,imgH1imgW

数据溢出,帮忙解决下
Public   Function   getImgW(IMGPath,   maxW,   maxH)
    Dim   scale,   scale1,   scale2
    Dim   imgW1,   imgH1
    imgW1   =   imgW(IMGPath)
    imgH1   =   imgH(IMGPath)
    scale1   =   imgW1   /   maxW
    scale2   =   imgH1   /   maxH
    if   scale1   >   scale2   then
      scale   =   scale1
    else
      scale   =   scale2
    end   if
    getImgW   =   CINT(imgW1   /   scale) '数据溢出了
  End   Function

[解决办法]
把cInt改成clng看看如何

热点排行