一段字符串操作,总报错!
我有一段字符串操作语句,想从array_temp1字符串中取一段字符,不知道怎么回事,总报错,请大家帮我看看吧,谢谢啦!string1字符串和field1数组前面定义过了。
......
Dim array_temp1,L1,finish1,start1
first1=left(field1(0),1)
L1=len(string1)
array_temp1=Application("temp1")
if array_temp1<>"" then
start1=instr(array_temp1,first1)
finish1=Mid(array_temp1,start1,L1)
......
报错如下:
Microsoft VBScript 编译器错误 错误 '800a03f6'
缺少 'End'
/iisHelp/common/500-100.asp,行242
Microsoft VBScript 运行时错误 错误 '800a0005'
无效的过程调用或参数: 'Mid'
/ldp/officechat/login1.asp,行40