943,840 Members | Top Members by Rank

Ad:
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Nov 9th, 2008
1

Re: Its a matter of converting it i guess...

thats because vb doesnt do the #$ notation.. I believe its something like vbCrLf .. but I dont do vb, its pointless.

and I believe VB still has a pos function where you can test if its > 1 or not.. check the helpfile
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Nov 9th, 2008
0

Re: Its a matter of converting it i guess...

i think putting that in actually worked! lol! niiiiiice!

but now im stuff in the data retreival part.. i need to look into that before i ask more questions.... If you care to... you could look into what i did wrong on that part... I think that did it tho... it made it through the procedure** ermm the subroutine.

thanks a million... now for the next part.. im sure you can do it LizR
Reputation Points: 10
Solved Threads: 2
Junior Poster
squidd is offline Offline
100 posts
since Nov 2007
Nov 9th, 2008
0

Re: Its a matter of converting it i guess...

Debugging is always the answer
Follow the data you get back, look at its values, look at what your code does.

I dont have vb6 to put it in. (or rather its around on a cd somewhere, but I am not loading it)
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Nov 10th, 2008
0

Re: Its a matter of converting it i guess...

ok well, i guess ill take the remaining bit of it to the VB forum. If you are interested in helping me figure out how to parse the proper characters, I think the only problem is a matter of syntax at this point LizR.

Pascal and Delphi 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. Pause 1.5
  4. buffer = Winsock2.GetData(TmpData, vbString)
  5. If InStr(1, "abc123", buffer) > 0 Then

The line: buffer = Winsock2.GetData(TmpData, vbString)

seems to be the only part the is keeping this code from parsing the text. As always, thank you and any help is certainly appreciated.
Last edited by squidd; Nov 10th, 2008 at 4:00 am.
Reputation Points: 10
Solved Threads: 2
Junior Poster
squidd is offline Offline
100 posts
since Nov 2007
Nov 10th, 2008
0

Re: Its a matter of converting it i guess...

I still think simple debugging will highlight the problem quickly.
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Nov 10th, 2008
0

Re: Its a matter of converting it i guess...

Believe me, I have tried... Many times LizR. Either I don't know how to do debugging effectively, or I am just plain stupid, or a combinatioin of both (the latter is most likely).

This tends to be frustrating... I am so close to getting this.
Reputation Points: 10
Solved Threads: 2
Junior Poster
squidd is offline Offline
100 posts
since Nov 2007
Nov 10th, 2008
0

Re: Its a matter of converting it i guess...

Put a break point on the first line in your data retrieval code
Add a watch to the value of the data returned eg buffer
Step through the code.

Most likely the issue is the value of buffer, if not, make a dummy app and play around with string functions till you find the one you want and how to use it
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008
Nov 10th, 2008
0

Re: Its a matter of converting it i guess...

It doesnt matter if I add a breakpoint to it or not when the syntax isnt right.

I know you are trying to help, but the error is that of syntax. Ill just try to get help in the VB section. Thanks for your efforts.
Last edited by squidd; Nov 10th, 2008 at 5:25 am.
Reputation Points: 10
Solved Threads: 2
Junior Poster
squidd is offline Offline
100 posts
since Nov 2007
Nov 10th, 2008
0

Re: Its a matter of converting it i guess...

But you've been running it so, there shouldnt be syntax errors
Reputation Points: 196
Solved Threads: 190
Posting Virtuoso
LizR is offline Offline
1,735 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Pascal and Delphi Forum Timeline: Problem "..system32\adortl100.bpl can't be installed..
Next Thread in Pascal and Delphi Forum Timeline: Wiener filter





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC