hello,
I am looking for most efficient way to process return string from my test devices.
Some of my devices terminate string with Chr(13), some with Chr(10), and Chr(0) is also possibility.
As of now I handle it with:
If Array.IndexOf(data, CByte(10)) > 0 Then INDEX = Array.IndexOf(data, CByte(10)) ElseIf Array.IndexOf(data, CByte(13)) > 0 Then INDEX = Array.IndexOf(data, CByte(13)) End If
But it seems that should be a better way.
Thanks in advance.