I am seeing STRFIND fail to find a substring that I know is present. Here is an example:
STRFIND SL[V230] 0xC D1051 C71 ST1023 """@"""
It's in a task with a 3000 us time slice on continuous execution every 5 seconds. The task has adequate time to complete on each invocation, because the .RunCounter member increments at the correct rate.
It's processing multiple strings in a loop, and works at times, so the fact that its in a task with a time slice is the only thing I can figure that could have anything to do with it. I'll try it in a program.
Also, what's with the triple quotes around the search string? In the string entry box, I only see one set.
Update: Moved the code (iterating through the indexes to the strings in a FOR-NEXT loop) to an unyielding program and it acts the same, so the yielding/slicing issue isn't the problem. Almost always gets the first string right, but then STRFIND fails on some or all additional iterations even though I know the sought string is present.