Please understand...it is possible for this to work with far less effort, but what we are describing is how to make it robust.
100% agree. This is the lesson I have taken from this situation. This segment needs error proofing. I guess I just need to start from scratch, and rebuild this segment. A couple questions if I may:
Lets say we have a string like this
abc123CR123abcCR
I Streamin when InQ >0 and with 1 delimiter 0xOD into SS0
On Success I run another STREAMIN 1 Delimiter 0x0D into SS1
I should get SS0 = abc123 and SS1 = 123abc Right?
According to the help files, once the first chunk is moved to the destination, then whatever is left in the buffer gets shifted to the beginning, so I think I'm interpreting this properly.
If so, I can separate each chunk into it's own string, and check to see if it starts with the correct character. If so, move on to parsing. Once parsing is done, clear the device, and go back to step 1. If not, clear all the strings, clear the device, and go back to step 1. Does this make sense as a strategy?