473,545 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Cant get Concat to work, please help.

I cant get the Concat function to work, please help.
Here's some of my code.

Module modTCP
Public TCP_RECEIVED_DA TA As String
Private WithEvents TCP_SERVER As New WinSockSVR

Private Sub TCP_SERVER_Data Arrival(ByVal strData As String) Handles
TCP_SERVER.Data Arrival
Dim strNEW_STRING As String
strNEW_STRING = String.Concat(T CP_RECEIVED_DAT A, strData)
TCP_RECEIVED_DA TA = strNEW_STRING
Call PROCESS_MESSAGE ()
End Sub
End Module

It doesnt seem to concat the two strings
the 1st time thru TCP_RECEIVED_DA TA gets updated, but the next time the sub
is fired off it doesn't update tcp_received_da ta.
I do it this way because I know the whole message my not be in the same
packet, so I build up the received data then use PROCESS_MESSAGE to see if
the message is complete.
Nov 20 '05 #1
4 1365
* "Martin Fletcher" <Ma************ *@msn.com> scripsit:
I cant get the Concat function to work, please help.
Here's some of my code.

Module modTCP
Public TCP_RECEIVED_DA TA As String
Private WithEvents TCP_SERVER As New WinSockSVR

Private Sub TCP_SERVER_Data Arrival(ByVal strData As String) Handles
TCP_SERVER.Data Arrival
Dim strNEW_STRING As String
strNEW_STRING = String.Concat(T CP_RECEIVED_DAT A, strData)
TCP_RECEIVED_DA TA = strNEW_STRING
Call PROCESS_MESSAGE ()
End Sub
End Module

It doesnt seem to concat the two strings
the 1st time thru TCP_RECEIVED_DA TA gets updated, but the next time the sub
is fired off it doesn't update tcp_received_da ta.
I do it this way because I know the whole message my not be in the same
packet, so I build up the received data then use PROCESS_MESSAGE to see if
the message is complete.


That's 'WinSockSVR'?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2
Yes, but I dont beleive that has anything to do with the concat problem.

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:bp******** *****@ID-208219.news.uni-berlin.de...
* "Martin Fletcher" <Ma************ *@msn.com> scripsit:
I cant get the Concat function to work, please help.
Here's some of my code.

Module modTCP
Public TCP_RECEIVED_DA TA As String
Private WithEvents TCP_SERVER As New WinSockSVR

Private Sub TCP_SERVER_Data Arrival(ByVal strData As String) Handles
TCP_SERVER.Data Arrival
Dim strNEW_STRING As String
strNEW_STRING = String.Concat(T CP_RECEIVED_DAT A, strData)
TCP_RECEIVED_DA TA = strNEW_STRING
Call PROCESS_MESSAGE ()
End Sub
End Module

It doesnt seem to concat the two strings
the 1st time thru TCP_RECEIVED_DA TA gets updated, but the next time the sub is fired off it doesn't update tcp_received_da ta.
I do it this way because I know the whole message my not be in the same
packet, so I build up the received data then use PROCESS_MESSAGE to see if the message is complete.


That's 'WinSockSVR'?

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>

Nov 20 '05 #3
Nevermind, the problem isnt with the code below, it is in the sub that
creates the strData. So strData is being passed bad data, which in turn
prevents the concat from working.
"Martin Fletcher" <Ma************ *@msn.com> wrote in message
news:vr******** ****@corp.super news.com...
I cant get the Concat function to work, please help.
Here's some of my code.

Module modTCP
Public TCP_RECEIVED_DA TA As String
Private WithEvents TCP_SERVER As New WinSockSVR

Private Sub TCP_SERVER_Data Arrival(ByVal strData As String) Handles
TCP_SERVER.Data Arrival
Dim strNEW_STRING As String
strNEW_STRING = String.Concat(T CP_RECEIVED_DAT A, strData)
TCP_RECEIVED_DA TA = strNEW_STRING
Call PROCESS_MESSAGE ()
End Sub
End Module

It doesnt seem to concat the two strings
the 1st time thru TCP_RECEIVED_DA TA gets updated, but the next time the sub is fired off it doesn't update tcp_received_da ta.
I do it this way because I know the whole message my not be in the same
packet, so I build up the received data then use PROCESS_MESSAGE to see if
the message is complete.

Nov 20 '05 #4
* "Martin Fletcher" <Ma************ *@msn.com> scripsit:
Yes, but I dont beleive that has anything to do with the concat problem.


Maybe the string contains a 'ControlChars.N ullChar' and it isn't
displayed completely.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1297
by: Garrett Kajmowicz | last post by:
I'm needed to insert large BLOBs into a database. With the 1MB packet limit, sending larger amounts of data would be difficult, so I had a neat idea. I would do an initial insert of an empty record and get the auto_insert ID from the response, and then loop through, appending data to the record. My table is simple. One unsigned int...
4
8328
by: Gerald Aichholzer | last post by:
Hello, I need to specify the following attribute in an xhtml-file containing TAL templates: <div tal:attributes="onMouseOver concat('func(',xyz,')')"> which results in <div onMouseOver=func( )>
5
1824
by: F. Da Costa | last post by:
Hi, Could it be correct that the following code does *not* work because i'm not using the var arr = new Array("a","b","c"); methodology?? Read through http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/array.html#1194827 but there was no mention of particular constructors having to be used. And if so how does one...
3
1458
by: Bryan Valencia | last post by:
Ok, I tried to use the concat function. It's in the Help, but it claims it can't find the namespace that contains 'concat'. You'd think there'd be a note in the help system if I have to use some library... Can anyone guide me? (I told you all I was new.)
16
7965
by: Jacky | last post by:
Hi, Concat wors as tmpStr = tmpStr.Concat(tmpStr, tmpStr2) Why it do not refer to owner object so tmpStr.Concat(tmpStr, tmpStr2) and now tmpStr has same value as upper?
1
1916
by: Trint Smith | last post by:
Ok, I have a webform that has these checkboxes: 1. something 2. something else 3. and something else When the user clicks on the checkbox, I want all of the selections to go into a textbox if all are checked. But currently, just the last selection is going in. Here's the code I have:
3
3077
by: Mythran | last post by:
Out of curiosity, only, which is recommended for SHORT concatenation...or concatenating two or three strings that are relatively small in size? Dim a As String = "bah" Dim b As String = "bah2" Dim c As String = a & b Dim d As String = String.Concat(a, b) string a = "bah"; string b = "bah2";
4
2498
by: zack | last post by:
Any help with this would be greatly appreciated, as cannot work out how to resolve. I have a report called "3_Strikes". In its 'On open' event is command to also open a criteria form popup form called, "3_Strikes_Search". The purpose of the form is to allow input of data to filter the results of the report, (In this case mail-merged...
4
20794
by: Martin Evans | last post by:
Hi, I'm getting: DBD::DB2::db do failed: SQL0440N No authorized routine named "CONCAT" of type "FUNCTION" having compatible arguments was found. SQLSTATE=42884 for some SQL like this:
0
7410
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7668
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5984
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5343
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4960
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3466
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
1901
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1025
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.