请大家帮我看看这段错误,帮帮忙!!!!特急!!!!!!!!
我在程序中调用这段函数
Function bin2str(binstr)
Dim varlen,clow,ccc,skipflag
skipflag=0
ccc = ""
varlen=LenB(binstr)
For i=1 To varlen
If skipflag=0 Then
clow = MidB(binstr,i,1)
If AscB(clow) > 127 Then
ccc =ccc & Chr(AscW(MidB(binstr,i+1,1) & clow))
skipflag=1
Else
ccc = ccc & Chr(AscB(clow))
End If
Else
skipflag=0
End If
Next
bin2str = ccc
End Function
发生错误错误如下:
Microsoft VBScript runtime error '800a0005'
Invalid procedure call or argument: 'chr'
/adm_famous.asp, line 303
也就是这一句出错:
ccc =ccc & Chr(AscW(MidB(binstr,i+1,1) & clow))
不知道原因,请高手帮帮忙啊!