i have a program that contains the current text in its textbox:
Now another program accesses this textbox and reads it out, but some problems occur, with hidden characters messing up some things:
the output of this debug is:
Not exactly what you would expect, this is what i was expecting:
How can i prevent this? What is the problem here? I tried replacing all chrs from 0 to 31 without any success.
Anyone an idea?
This could be very simple
Code:
Blaaaat
Blaaat
Blaat
Now another program accesses this textbox and reads it out, but some problems occur, with hidden characters messing up some things:
Code:
aSplitted = strTextBuff.Split(Environment.NewLine)
For Each aElement As String In aSplitted
Debug.WriteLine(aElement.Length & " - " & aElement)
Next
the output of this debug is:
Code:
7 - Blaaaat
7 -
Blaaat
7 -
Blaat
Not exactly what you would expect, this is what i was expecting:
Code:
7 - Blaaaat
6 - Blaaat
5 - Blaat
How can i prevent this? What is the problem here? I tried replacing all chrs from 0 to 31 without any success.
Anyone an idea?
This could be very simple