[comp.sys.mac.hypercard] find and use of card name

john@felix.UUCP (John Gilbert) (11/04/87)

Hello,

I have a question that we may have to guess at, unless someone out there
knows the internals of HyperCard  (Yo Apple!)

I have a stack, and I want to search for a card identified by a date.
Is there a performance gain to be had by naming each card by the date
and saying

   find card cardDate

as opposed to 

   find cardDate in field "date"

Since HyperCard is so heavily text oriented, it may be that the card name is
treated as another (special) field in a card.

If I DO use the card name, is the duplication of the data going to cost me,
or is the name field always allocated for a card whether it is in use or not?

Also,  does anyone have a slick way of finding, say, the first card >= a given
card name.  I want to work with ranges of cards, but don't think the user
should have to know the exact start and end card identifiers.  I want to let
them enter:

   from 1/1/76 to 12/31/76

but it is pretty slow looking at every card for the first eligible one.

John G.
--
John Gilbert
!trwrb!felix!john