Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!gdavis From: gdavis@primate.wisc.edu (Gary Davis) Newsgroups: comp.sys.mac.hypercard Subject: Re: Re:Deleting lines in fields/sorting fields/scrolling fields (HELP) Message-ID: <4007@uakari.primate.wisc.edu> Date: 6 Mar 91 06:07:17 GMT References: <3802.27D37A60@blkcat.fidonet.org> Sender: news@primate.wisc.edu Reply-To: gdavis@primate.wisc.edu Lines: 25 From article <3802.27D37A60@blkcat.fidonet.org>, by Ken.Knight@f421.n109.z1.fidonet.org (Ken Knight): > I assume you are using the find command to find the name to remove. If > so, then you can use the value returned by the FoundLine() function. > Specifically: > find x in field "foo" > if the result is not "not found" then > get the foundline > delete line (word 2 of it) of field "foo" > end if Two minor suggestions: You can also just say delete the foundLine It's best to say if the result is not empty According to Dan Winkler, there's no guarantee that the failure of find wil continue to be reported as "not found" in future versions of HyperCard. Gary Davis