B
Boni
Dear all,
I need to replace in a long string all chr(10) to chr(10)chr(13) if 13 is
not behind 10.
dim str as string=....
If str.Chars(i) = vbLf And str.Chars(i + 1) <> vbCr Then
str.Insert(i, vbCr)
i = i + 1
End If
But if set a breakpoint on insert and look on str before and after insert I
can see, that vbCr is just not inserted!!! ascii(str.Chars(i) ) and
str.Chars(i+/-1) are not 13!!!
What is wrong??
Thanks,
Boni
I need to replace in a long string all chr(10) to chr(10)chr(13) if 13 is
not behind 10.
dim str as string=....
If str.Chars(i) = vbLf And str.Chars(i + 1) <> vbCr Then
str.Insert(i, vbCr)
i = i + 1
End If
But if set a breakpoint on insert and look on str before and after insert I
can see, that vbCr is just not inserted!!! ascii(str.Chars(i) ) and
str.Chars(i+/-1) are not 13!!!
What is wrong??
Thanks,
Boni