Re: "find" start position manipulation?

Bruce Holm (starnet!apple!wv.MENTORG.COM!bruceh)
Fri, 17 Mar 95 12:41:34 -0800

On Mar 16, 8:18pm, Scott Raney wrote:
> Subject: Re: "find" start position manipulation?
> >
> > How do I determine where the "find" command will start its search
> > from? Is there any way to set its start position explicitly?
>
> It starts from the current card. At the first field if there was no
> previously found text, or from that position if there was.
>
> > I've done some experimentation doing some finds (on a single field),
> > then clicking in the field. The results seem pretty chaotic. (ie.
> > sometimes the start position seems to be reset, sometimes not)
>
> There are several conditions that cause the previous find to be
> cleared. I must admit, however, that I'm sure I don't know what all
> of them are. The best way around this is is probably to "find empty"
> which clears the previous find, forcing the next find to start at the
> first field of the card.
> Scott

This presents a problem...

I have created scripts that search for a word or phrase, then act on it in some
fashion (change the font, style, whatever...). There is a find next button
that I want to find the next occurance of the phrase. But after I have done
the action on the found text, it loses the foundText location. So clicking on
the find next button starts at the beginning of the card's fields again. This
is not consistent with other Search/Find type capabilities found in other
applications, particularly with word processors. Is there a way to deal with
this situation and if not, can enhancements be made in future versions of MC
that could fix this problem?

--Bruce

-- 
* Bruce G. Holm                503-685-1350    email:  bruceh@wv.mentorg.com
* Mentor Graphics Corp.        503-685-7000
* 8005 SW Boeckman Rd.
* Wilsonville, OR 97070-7777   Disclaimer:  Opinions expressed are my own!