JoeP
09-09-2002, 04:16 PM
Would someone advise me as to the correct syntax of a string test.
I get the following error:
Microsoft VBScript runtime error '800a01a8'
Object required: 'This is a Test for The occurrence of B in this string.'
With this:
<%
str = "This is a Test for The occurrence of B in this string."
if (str.indexOf(B) > -1) Then
Response.write("String Contains B")
else
Response.write("String Does Not Contain B")
end If
%>
Thank you.
I get the following error:
Microsoft VBScript runtime error '800a01a8'
Object required: 'This is a Test for The occurrence of B in this string.'
With this:
<%
str = "This is a Test for The occurrence of B in this string."
if (str.indexOf(B) > -1) Then
Response.write("String Contains B")
else
Response.write("String Does Not Contain B")
end If
%>
Thank you.