Its a matter of converting it i guess...

Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

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

 
1
  #11
Nov 9th, 2008
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
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
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

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

 
0
  #12
Nov 9th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

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

 
0
  #13
Nov 9th, 2008
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)
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
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

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

 
0
  #14
Nov 10th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

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

 
0
  #15
Nov 10th, 2008
I still think simple debugging will highlight the problem quickly.
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
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

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

 
0
  #16
Nov 10th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

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

 
0
  #17
Nov 10th, 2008
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
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
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

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

 
0
  #18
Nov 10th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1,735
Reputation: LizR has a spectacular aura about LizR has a spectacular aura about 
Solved Threads: 186
LizR LizR is offline Offline
Posting Virtuoso

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

 
0
  #19
Nov 10th, 2008
But you've been running it so, there shouldnt be syntax errors
Did I just hear "You gotta help us, Doc. We've tried nothin' and we're all out of ideas" ? Is this you? Dont let this be you! I will put in as much effort as you seem to.
Reply With Quote Quick reply to this message  
Reply

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



Similar Threads
Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



Tag cloud for Pascal and Delphi
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC