Is there any way to switch off the 'Wrapped around' functionality of Delphi 2010's search?
I understand lots of developers have issues with the new search function but it works well for me except when the search wraps around and goes to the first result again.
I also know that you can flag the Search selection box but this will not work for me. I miss the part of the search functionality that would let you search from cursor or scope and tell you when there are no more results.
An example of where this is messing me around. I have a tree view where lots of nodes are being accessed by level indexes (i.e. Item.Level = 1
) and I need to add a new node at level 0 and thus all of the indexes needs to shift to Level + 1. I have wasted plenty of time now reassigning these indexes a second and even third time because the search function wraps (I cannot use the Replace for what I am doing).
It's a pain to watch the code scroll bar every time I change something and .Level = 0
has become .Level = 1
, .Level = 2
, etc.