[comp.sys.mac.hypercard] Bug in mark!

mike@ymt.com (Michael Czeiszperger) (06/18/91)

gdavis@primate.wisc.edu (Gary Davis) writes:
>Well I tried it and it works fine. It took about 20 secs to mark all
>cards not containg "Smith" in a database of about 5000 names. I mention
>this because another approach suggested was to use the following statement:

>     mark cards where "your string" is not in field "Foo"

>I tried it on Smith and found it took about 5 minutes.

I'm trying to set up a system where the stack user picks the search
criteria.  The "mark cards" syntax is supposed to be:

mark cardexpr where expr

You would think expr could be a variable containing a syntax structure,
but this is not the case.  As a workaround, I actually have to generate
the script for the mark call from the search script, and then execute it!

>[...] It took Reports only 15 seconds to come
>up with the list, where HyperCard itself took 2.5 minutes. How can it
>be so much faster?

I noticed this too.  Maybe they should sell the faster bit as another
XCMD?


-- 
Michael Czeiszperger  | "I'm trying to teach a caveman to play scrabble
mike@ymt.com          | but the only word he is knows is 'uugh', and he
Greenbrae, CA         | doesn't know how to spell it!"

man@cs.brown.edu (Mark H. Nodine) (06/22/91)

In article <mike.677190682@ushi>, mike@ymt.com (Michael Czeiszperger) writes:
|> I'm trying to set up a system where the stack user picks the search
|> criteria.  The "mark cards" syntax is supposed to be:
|> 
|> mark cardexpr where expr
|> 
|> You would think expr could be a variable containing a syntax structure,
|> but this is not the case.  As a workaround, I actually have to generate
|> the script for the mark call from the search script, and then execute it!

How about using
   mark cards where value(criteria)
to do it?

	--Mark