I have
- a scrolling fld with "Multiple hilites" checked
- a search fld with "Don't search" checked and a "returnInField" handler.
I want to hilite all relevant, possibly non contiguous, lines of the scrolling fld, that contain the search string.
Of course I can do that manually, holding down the command key to hilite several lines. I tried to do the same by script; after many trials, this is the cleanest version:
Code: Select all
find string laChaine in fld leNumero -- search 1st occurrence
repeat while the result ≠ "Not found"
select the foundLine -- hilite it; that works
find string laChaine in fld leNumero -- search next occurrence; but stays on 1st one :-(
end repeat
1) keeps flashing the very same line of the scrolling fld
2) therefore, never stops.
How does one do that?