[comp.sys.mac.hypercard] Multiple Find

Allan.Balliett@f421.n109.z1.fidonet.org (Allan Balliett) (12/17/90)

Hey--I have a customer who wants to put several similar stacks into a 
folder and then be able to search then ALL with one FIND command (with 
RETURN initiating FIND AGAIN)  For some reason this is drawing a blank 
for me:
A. IS there some way to get a list of stack within the folder and create 
a list of stacks to search EACH time a FIND is issued?
(Hmm, nice structure to this message!)
Any help/suggestions would be appreciated, but the customer insists on 
multiple stacks (all same background, btw) within the folder
THANKS!


--  

        Allan Balliett, Allan.Balliett@f421.n109.z1.fidonet.org
      via The Black Cat's Shack's FidoNet<->Usenet Gateway
          blkcat.fidonet.org   and   Fidonet 1:109/401

Ken.Knight@f421.n109.z1.fidonet.org (Ken Knight) (12/18/90)

Allan Balliett asks:
"Hey--I have a customer who wants to put several similar stacks into a
folder and then be able to search then ALL with one FIND command (with
RETURN initiating FIND AGAIN)  For some reason this is drawing a blank
for me:
A. IS there some way to get a list of stack within the folder and create
a list of stacks to search EACH time a FIND is issued?"
 
Offhand guess. You'll want to lay your hands on something like F. 
Rinaldi's FileList XCMD (here on the Clone, and I'm sure many FTP 
sites). Use that to find out the names of the stacks in the folder then 
do something like:
 find "blah blah" in this stack
 if the result is "Not Found" then go stack 'first in list you just got'
 find "blah blah" in this stack
 if the result is "Not Found" then go stack "next in list'
 ....
You can turn that into a nice loop probably and also make the finds 
"find "blah" in stack 'nth in list'". It'll be slow though with all the 
stack switching. Also, lock the screen until you find something or reach 
the end of the stacks THEN unlock it. Also, you'll want to set Lock 
Messages to True during the search so that when you switch stacks the 
OpenStack handlers aren't executed.


--  

        Ken Knight, Ken.Knight@f421.n109.z1.fidonet.org
      via The Black Cat's Shack's FidoNet<->Usenet Gateway
          blkcat.fidonet.org   and   Fidonet 1:109/401

schwerin@milton.u.washington.edu (Stan Schwerin) (12/19/90)

You should be able to use an xcmd (developers stack?) to get a list of all the stacks in a folder, then just open them up and search.  Multiple stacks open with HC 2.0.

-- 
* Stan Schwerin                 Internet:  schwerin@milton.u.washington.edu   *
* Yo                            AppleLink: SCHWERIN1                          *
*   \                           Phone:     (206) 543-6114                     *
*    Yo dude     "There aren't many hitchikers on the road to hell." -G. Bear *