Connecting Tech Pros Worldwide Help | Site Map

Invalid procedure call or argument: 'InStr'

john@munsey.net
Guest
 
Posts: n/a
#1: Aug 11 '05
Ran Windows update tonight. Since then I get this error:

HTTP 500.100 - Internal Server Error - ASP error
Internet Information Services

--------------------------------------------------------------------------------

Technical Information (for support personnel)

Error Type:
Microsoft VBScript runtime (0x800A0005)
Invalid procedure call or argument: 'InStr'
/homerun/getdata2.asp, line 44


Browser Type:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR
1.1.4322)

Page:
GET /homerun/getdata2.asp

Time:
Thursday, August 11, 2005, 12:19:17 AM


More information:
Microsoft Support


This is line 44:

pos2=InStr(pos1,txt,"<span class")

Any ideas?

Phill. W
Guest
 
Posts: n/a
#2: Aug 11 '05

re: Invalid procedure call or argument: 'InStr'


<john@munsey.net> wrote in message
news:1123737736.473586.251000@g43g2000cwa.googlegr oups.com...[color=blue]
> Microsoft VBScript runtime (0x800A0005)
> Invalid procedure call or argument: 'InStr'
> /homerun/getdata2.asp, line 44[/color]
.. . .[color=blue]
> This is line 44:
>
> pos2=InStr(pos1,txt,"<span class")[/color]

"pos1" is either zero, negative or, possibly, beyond the end of the string.

If pos1 > 0 Then
pos2=InStr(pos1,txt,"<span class")
Else
' Oops
End If

HTH,
Phill W.


Closed Thread