Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!usc!apple!agate!codon1.berkeley.edu!allen From: allen@codon1.berkeley.edu (Edward Allen;345 Mulford;x2-9025) Newsgroups: comp.sys.mac.hypercard Subject: Re: find command - 2 questions Message-ID: <1990Jan3.003321.6498@agate.berkeley.edu> Date: 3 Jan 90 00:33:21 GMT References: <5026@tekred.CNA.TEK.COM> Sender: usenet@agate.berkeley.edu (USENET Administrator;;;;ZU44) Reply-To: allen@codon1.berkeley.edu.UUCP (Edward Allen) Distribution: na Organization: University of California, Berkeley Lines: 24 Matt Crawford asks two questions about finds, one about restricting finds to a set of fields, another about testing the situation in which a string is found. Usually to get what you want from a find that is more than a simple one, you wind up writing scripts using the properties "the foundchunk", "the foundfield", or "the foundline" to assess whether what you found was where you wanted it. the foundChunk returns a description of which characters in which field were found with a syntax something like "char 2 to 6 of bkgnd field 3" the foundField is probably the property to test for if you want to restrict to one of a set of fields, only displaying results if the foundField was appropriate. the foundline returns something like "line 3 of card field 5" These properties were new with HyperCard 1.2, I think. If you have an older version, get 1.2.2 or 1.2.5 if using system 6.04. Ed Allen (allen@enzyme.berkeley.edu) "