| | |
need some help parsing text from a website...
Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2007
Posts: 100
Reputation:
Solved Threads: 2
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):
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.
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)
Private Sub Winsock2_DataArrival(ByVal bytesTotal As Long) Dim buffer As String, S As String, TmpData As String buffer = Winsock2.GetData(TmpData, vbString) 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.
![]() |
Similar Threads
- error on 'ajaxToolkit:ToolkitScriptManager' when upload to a host (ASP.NET)
- Help needed for newbie trying to set up subscription-based website (PHP)
- Please help us to beta-test PHP editor (PHP)
- Help me please (C++)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: recheck n enter to database
- Next Thread: Running a VB application with MS Access database
Views: 524 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for Visual Basic 4 / 5 / 6
* 6 429 2007 access activex add age append application basic beginner birth bmp c++ calculator cd cells.find click client code college column component connection copy creat ctrl+f data database datareport date delete dissertations dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report retrieve save search sendbyte sites sort sql sql2008 sqlserver struct subroutine table tags textbox time timer urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





