Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!sharkey!itivax!umich!zip!spencer From: spencer@eecs.umich.edu (Spencer W. Thomas) Newsgroups: comp.sys.mac.hypercard Subject: Re: Bug in Hypercard 1.2.1 Message-ID: Date: 25 Jul 89 14:02:26 GMT References: <1389@bnlux0.bnl.gov> Sender: news@zippy.eecs.umich.edu Organization: University of Michigan EECS Dept Lines: 16 In-reply-to: drs@bnlux0.bnl.gov's message of 25 Jul 89 01:54:40 GMT In article <1389@bnlux0.bnl.gov> drs@bnlux0.bnl.gov (David R. Stampf) writes: > I've encountered a strange bug in hypercard 1.2.1 in which the find command > 'find "xyz" in field "ABC"' finds the occurance of xyz in fields other than > "ABC". If you use 'find "xyz" in field 37', where 37 is the number of the > field "ABC", then every is ok. I think the problem here has been described before in this forum. What is happening is that the field name is translated to a number before the find is executed. If the current card does not have a field of that name, I am not sure what happens. The moral: if you want to find in a named field, make sure that all fields of that name (on all cards or backgrounds) have the same number, and that a field of that name appears on the card from which you will initiate the find. -- =Spencer (spencer@eecs.umich.edu)