Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!cdlee From: cdlee@aix01.aix.rpi.edu (CHUNDA LEE) Newsgroups: comp.sys.mac.hypercard Subject: Re: Finding Text Message-ID: <724gyk=@rpi.edu> Date: 4 May 91 16:38:09 GMT References: <284.2819CAE4@mcws.fidonet.org> Organization: Rensselaer Polytechnic Institute, Troy NY Lines: 23 Nntp-Posting-Host: aix01srv.aix.rpi.edu In article <284.2819CAE4@mcws.fidonet.org> Harry.Myhre@p2.f863.n102.z1.fidonet.org (Harry Myhre) writes: > >Steven Langlois writes in a message to All on 24 Apr 91 > >SL> I'm new to HyperTalk so bare with me. Is there a Find Again type >SL> of command in hypertalk or does find just always find the first >SL> occurance from the current card? > >With HC 2.0, yes. Type find "cat" into the message box and press return. HC >2.0 will find the first occurance of cat in your stack and put a rectangle around >it. Press return again and it will find the next occurance. > > >-- >: Harry Myhre - via FidoNet node 1:102/851 (818)352-2993 >: ARPA/INTERNET: Harry.Myhre@p2.f863.n102.z1.fidonet.org >: UUCP: ...!{elroy,elroy!bohica}!mcws!863.2!Harry.Myhre >: Compu$erve: >internet:Harry.Myhre@p2.f863.n102.z1.fidonet.org In HyperTalk, one easy way to find all the "text" is put the FIND in a repeat route and put the condition "if the result is empty then exit repeat". In this subroutine you can add something you want to do after you find the string. CD LEE, cdlee@rpi.edu Rensselaer Polytechnic Institute