Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

string in textbox missing some of the text,

Status
Not open for further replies.

ttdobj

Technical User
Sep 30, 2002
63
GB
I have a VB app that gets telephone call information from a comms port using Gport.input. This is then printed to a file and also displayed in a textbox, but the problem is that there seems to be some characters are being supressed from the textbox. For example in the file it might say the following:

N 116 00 A110 001 7205 01/06 16:56:53 00:05:08 .0
&1234645500XXXXXX 556784X 000 000
& 000 01 2

but in the textbox it will only show this:

N 116 00 A110 01/06 16:56:53 00:05:08 000 01 2


the vb code is as follows:

buf$ = GPort.Input

If Len(buf$) Then
FileOpen
Print #clfn, buf$;
txtDataView.Text = txtDataView.Text & buf$
txtDataView.SetFocus
txtDataView.SelStart = Len(txtDataView.Text)
End If

Any ideas?
 

Do you have the multiline property = true? And, do you have enough room for the text to display?

Good Luck

 
Is it fair to assume that all the expected text can be found in the file?
 
Sadly Multiline is set to true and I have scroll bars enabled

D
 
It is correct that all the expected text is in the file.

It is interesting to note that the ommitted text is the same for each call record. Which I suppose suggests that it is rogue characters in the string from the com port, but I don't understand why the textbox should behave differently to the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top