Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!uniwa!fennel.cc.uwa.oz.au!n_hays From: n_hays@fennel.cc.uwa.oz.au Newsgroups: comp.sys.mac.hypercard Subject: Wanted: "Find Next" Message-ID: <1990Nov20.155800.2630@fennel.cc.uwa.oz.au> Date: 20 Nov 90 07:57:59 GMT Organization: University of Western Australia Lines: 37 I've been generally pleased with Hypercard 2 (my thanks to the team) in spite of the fact that half my scripts died with its introduction. One thing which I find a particular nuiscance, however, is the change to the way HC handles "finds". I have a simple script designed to extract a copy of any line containing a particular word. It runs along the lines of: Put "foo" into ThingToFind repeat until cooked find string ThingToFind do stuff with it end repeat The problem is that HC 1.x could always be relied upon to find the NEXT example of ThingToFind on any given card. HC 2 always returns to the first example. Moving to the next card is no good since there may be two or more valid finds on the same card. Testing for the "lastfound" works unless there are two or more examples on the same card. It seems that I have to keep a track of some arbitrary number of previously found examples and test for them each time. This is kludgy in the extreme and slows things down a lot, since HC has to find each example at least twice. Am I missing something obvious here? It seems to me that HC desperately needs a built in "Find Next" command. Neale Hays ps. My thanks to Jim Taylor for mailing me the stack I wanted. It is much appreciated. ********************************************************************* n_hays@fennel.cc.uwa.oz.au University of Western Australia I can't send mail, sorry. *********************************************************************