need some help parsing text from a website...

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2007
Posts: 100
Reputation: squidd is an unknown quantity at this point 
Solved Threads: 2
squidd squidd is offline Offline
Junior Poster

need some help parsing text from a website...

 
0
  #1
Nov 10th, 2008
Basically, I want to check and see if a certain word or combination of letters and/or numbers is on a website using a winsock connection.

I can do this in delphi, but i cant seem to get the hang of it in VB6. I always get some sort of error. This is what i have so far(the receiving part that matters anyway):

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub Winsock2_DataArrival(ByVal bytesTotal As Long)
  2. Dim buffer As String, S As String, TmpData As String
  3. buffer = Winsock2.GetData(TmpData, vbString)
  4. If InStr("abc123", buffer) > 0 Then


I get an error on the line: buffer = Winsock2.GetData(TmpData, vbString)

What do I need to have in the code to be able to check to see if the data I am looking for is there or not? Ive been struggling with this for about 4 days now.

Any help would be greatly appreciated.

Thank you.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 524 | Replies: 0
Thread Tools Search this Thread



Tag cloud for Visual Basic 4 / 5 / 6
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC