Path: utzoo!utgpu!water!watmath!clyde!rutgers!princeton!udel!gatech!bloom-beacon!husc6!amcad!stech!sysop From: sysop@stech.UUCP (Jan Harrington) Newsgroups: comp.sys.mac.hypercard Subject: "Finding" but not "going" Message-ID: <441@stech.UUCP> Date: 14 Feb 88 12:30:27 GMT Organization: Scholastech, Inc., Waltham, Mass. Lines: 27 This one's got me stumped. As I understand, and have always used, the find command, find locates the first occurrence of a search string and then does a goto the location of the text. What if I just want to know where the text is located rather than actually going to it? In other words, if I search a multi-line field on a specific card for a bit of text, all I want to know is the line number where the text is found. Can that be done? I definitely don't want to go to that card. I only want that line number, which will then be used to retrieve data from another field. I've been able to do this, by the way, by conducting a sequential search on the field (using a counter to go from one line to the next). It works fine, but isn't terribly efficient. I'm looking for something faster. (Should I write a binary search instead of attempting to use find?) Jan Harrington, sysop Scholastech Telecommunications ihnp4!husc6!amcad!stech!sysop or allegra!stech!sysop ******************************************************************************** Miscellaneous profundity: "No matter where you go, there you are." Buckaroo Banzai ********************************************************************************