Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 07:31 AM
surftown
Guest
 
Posts: n/a
Default An Interesting Puzzle...

Check out http://www.theindianmaiden.com/lost/ripper.asp

I am sure that it is an easy problem but can anybody tell me why I
cant get rid/detect these question marks?

<%
url = "http://www.employnow.com/castingc.htm"


set xmlhttp = server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
oText = xmlhttp.responseText
set xmlhttp = nothing


oText = lcase(mid(oText,instr(oText,"<body")+5))

for i = 0 to 96

do while instr(oText,chr(i)) <> 0

oText = left(oText,instr(oText,chr(i))-1) +
mid(oText,instr(oText,chr(i))+1)

loop

next

response.write("is there any ? left? "+cstr(instr(otext,chr(63)))+"
then what is this: "+mid(otext,1935,1))
%>
  #2  
Old July 19th, 2005, 07:31 AM
dlbjr
Guest
 
Posts: n/a
Default Re: An Interesting Puzzle...

<%
url = "http://www.employnow.com/castingc.htm"
set xmlhttp = server.CreateObject("MSXML2.ServerXMLHTTP")
xmlhttp.open "GET", url, false
xmlhttp.send ""
oText = xmlhttp.responseText
set xmlhttp = nothing
oText = lcase(mid(oText,instr(oText,"<body")+5))

intLength = Len(oText)
If intLength > 0 Then
Dim arrayData()
ReDim arrayData(intLength)
intCount = 0
For i = 1 To intLength
strItem = Mid(oText,i,1)
intItem = Asc(strItem)
If intItem >= 97 And intItem <= 122 Or intItem = 32 Then
arrayData(intCount) = strItem
intCount = intCount + 1
End If
Next
End If
oText = Join(arrayData)
response.write("is there any ? left? " + cstr(instr(otext,chr(63))) +
"<BR>then what is this: " + mid(otext,1935,1))
%>

-dlbjr

invariable unerring alien


  #3  
Old July 19th, 2005, 07:31 AM
surftown
Guest
 
Posts: n/a
Default Re: An Interesting Puzzle...

This produces the same output. Is there anything in my code that could
produce an INSTR not detecting a ? but printing the ? on the very next
statement?

"dlbjr" <dontknow@do.u> wrote in message
news:ORBK%23tuXDHA.2432@TK2MSFTNGP10.phx.gbl...[color=blue]
> <%
> url = "http://www.employnow.com/castingc.htm"
> set xmlhttp = server.CreateObject("MSXML2.ServerXMLHTTP")
> xmlhttp.open "GET", url, false
> xmlhttp.send ""
> oText = xmlhttp.responseText
> set xmlhttp = nothing
> oText = lcase(mid(oText,instr(oText,"<body")+5))
>
> intLength = Len(oText)
> If intLength > 0 Then
> Dim arrayData()
> ReDim arrayData(intLength)
> intCount = 0
> For i = 1 To intLength
> strItem = Mid(oText,i,1)
> intItem = Asc(strItem)
> If intItem >= 97 And intItem <= 122 Or intItem = 32 Then
> arrayData(intCount) = strItem
> intCount = intCount + 1
> End If
> Next
> End If
> oText = Join(arrayData)
> response.write("is there any ? left? " + cstr(instr(otext,chr(63))) +
> "<BR>then what is this: " + mid(otext,1935,1))
> %>
>
> -dlbjr
>
> invariable unerring alien
>
>[/color]


 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles