Is SelectElement() "smart"?

Just starting out? Need help? Post your questions and find answers here.
User avatar
Erich
User
User
Posts: 49
Joined: Thu Sep 30, 2010 9:21 pm

Is SelectElement() "smart"?

Post by Erich »

When I'm in the middle of a large list, is SelectElement() smart in the sense that it will go relative from the current element's Listindex back and forth through the list to reach the desired element? Or does it always go through the list from the start?
"I have never let my schooling interfere with my education." - Mark Twain
freak
PureBasic Team
PureBasic Team
Posts: 5929
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Is SelectElement() "smart"?

Post by freak »

Yes. It always goes the shortest route from start, end or the current position.

Note that after using ChangeCurrentElement() the list "forgets" its current index and so has to go from start or end on the next SelectElement().
quidquid Latine dictum sit altum videtur
Post Reply