[comp.sys.mac.hypercard] Find Help needed

jdic@uhura.cc.rochester.edu (Jonathan Dick) (08/24/90)

I think I may have seen this question answered here a few months ago, but
what can I say... I wasn't paying attention.  Anyhow, two questions:

One:

	I'm trying to build a search function into one of my stacks.  I've
	built a pseudo-dialog box from bkgnd fields and buttons.
	Basically, I have a [Find] button, and a [Done] button with a
	field for the search string to be typed into.
	
	The [Done] button does two things, a) it puts Empty into the
	search field, and b) it hides all the dialog-box related stuff.

	The [Find] button script looks like this:

	on mouseUp
	  find bkgnd field "Search For" in bkgnd field "Key Words"
	end mouseUp

	Now my problem: When I use the [Find] button, sure enough, it
	finds the first occurrance of the search string in the key words
	field.  However, I can't get past this point.  I'd like to go on
	to find the next occurrance of the string, but HyperTalk seems to
	start the search from scratch each time.

	If I type:

	find "foo" in bkgnd field "Key Words"

	into the message box, and hit Return, it finds without a problem.
	Subsequent Returns take me to the next match of the string.

	Why the difference between these examples?  What is it I'm not
	understanding about HyperTalk?  Most importantly, what can I do
	about this?

Question Two:

	Is there an archive site, or a list somewhere of the most commonly
	asked questions in this newsgroup?  I hate to waste time & bandwidth
	re-asking questions that have already been explained...

Thanx for your help & patience...

-Jon