Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!bloom-beacon!shawn From: shawn@e40-008-11.athena (Shawn O'Donnell) Newsgroups: comp.sys.mac.hypercard Subject: Re: HC find quirks Message-ID: <1990Sep17.134816.4589@athena.mit.edu> Date: 17 Sep 90 13:47:37 GMT References: <1990Sep14.223831.17977@athena.mit.edu> <1990Sep14.232310.5317@midway.uchicago.edu> Sender: daemon@athena.mit.edu (Mr Background) Distribution: comp.sys.mac.hypercard Organization: /mit/shawn/.organization Lines: 41 In-Reply-To: chh9@quads.uchicago.edu's message of 14 Sep 90 23:23:10 GMT When I read Conrad's suggestion concering my Hypercard find problems, I thought he had the answer--my fields were numbered such that the first search (find the right HEADING) took me to a field with a higher number than that for the second field (find the right Subheading,) and so HyperCard went to the next card before it began its search. I quickly gave his suggestion a try. I was sad to find that I had my fields numbered in the order that _should_ work. I tried the two searches manually, and they worked properly. In the script, though, they don't work. I don't think I'm doing anything between the two find commands that should disturb the process... Here are a few lines from the script: repeat [until you find a subject line] ... if (char 1 of theSubject <> space) then -> find theSubject in bg fld Subject exit repeat else (look a line earlier for the SUBJECT line) end if... end repeat -- First, we get the contents of the line, from after the last space -- to the first period of the leader; put offset (".",theTopicLineText) into length put char 3 to (length-1) of theTopicLineText into theTopic -- then we find the first card with it in the topic field. -> find theTopic in bg fld Topic I can get it to work by throwing in a "go previous card/go next card" pair, but that clutters up the recent card list. What gives? Shawn O'Donnell shawn@athena.mit.edu