Page 1 of 1

Sequential navigation of field lines

Posted: Sun Dec 27, 2020 4:17 pm
by glenn9
Hi everyone,

I'm currently tying myself up in knots trying to figure out the code of how to navigate sequentially lines of a field. For example, clicking on a button to select the next line of a field. I was hoping that something like

Code: Select all

go to next line of field 1
would work but of course doesn't as its not a card navigation!

Grateful for any tips.

Many thanks.

Glenn

Re: Sequential navigation of field lines

Posted: Sun Dec 27, 2020 6:30 pm
by dunbarx
Hi.

Assuming you have a line selected in a field. put this in a button script, or wherever:

Code: Select all

on mouseUp
   select line (word 2 of the selectedLine) + 1 of fld yourField
end mouseUp
Craig

Re: Sequential navigation of field lines

Posted: Sun Dec 27, 2020 6:53 pm
by glenn9
Craig,

Many thanks for your help, this works perfectly and I understand the logic.

Kind regards,

Glenn