Sequential navigation of field lines

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Sequential navigation of field lines

Post by glenn9 » Sun Dec 27, 2020 4:17 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10317
Joined: Wed May 06, 2009 2:28 pm

Re: Sequential navigation of field lines

Post by dunbarx » Sun Dec 27, 2020 6:30 pm

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

glenn9
Posts: 234
Joined: Wed Jan 15, 2020 10:45 pm

Re: Sequential navigation of field lines

Post by glenn9 » Sun Dec 27, 2020 6:53 pm

Craig,

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

Kind regards,

Glenn

Post Reply