Limiting the scope of a loop in a field
Posted: Sun Apr 11, 2021 3:39 pm
Dear All,
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:
but this of course will loop through the lines of the entire field, whether they are in view or not.
Grateful for any tips in how to limit the loop to just those lines that are in view.
Many thanks,
Glenn
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