asp总出现这个错误(20分求)
Script error detected at line 371.
Source line: filelist=Left(filelist,len(filelist)-1)
Description: 无效的过程调用或参数: 'left'
部分代码如下
function GetExtendName(FileName)
dim ExtName
ExtName = LCase(FileName)
ExtName = right(ExtName,3)
ExtName = right(ExtName,3-Instr(ExtName,"."))
GetExtendName = ExtName
end function
rsmap.Close
set rsmap=nothing
conn.close
set conn=nothing
session("totalsize")=totalsize
for i=0 to icount
response.write oldpath(i) & "文件上传成功!" & "<br>"
fjoption=fjoption & "<option value="&path1(i)&">"&oldpath(i)&"</option>"
if filelist="" then
filelist=path1(i)
else
filelist=filelist & "," & path1(i)
end if
next
filelist=Left(filelist,len(filelist)-1)
session("filelist")=filelist
session("fjoption")=fjoption
参考答案:filelist自己是空串,len它得到0,减1变-1,超出Left的参数范围了