I have a scrolling list field that I want to loop through the lines of, but I want the loop to be restricted to just those lines that are in view by virtue of the scroll position. My first attempt was simply to do this:
Code: Select all
...
put 1 into tLineNumber
repeat for each line x in field "A"
-- do stuff
add 1 to tLineNumber
end repeat
...
Grateful for any tips in how to limit the loop to just those lines that are in view.
Many thanks,
Glenn