Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!hsdndev!dartvax!Susan.A.Tenney From: Susan.A.Tenney@dartmouth.edu (Susan A. Tenney) Newsgroups: comp.sys.mac.hypercard Subject: Re: Line number of field line that has insertion point in it? Message-ID: <1991Mar20.134659.24049@dartvax.dartmouth.edu> Date: 20 Mar 91 13:46:59 GMT References: <2890@sparko.gwu.edu> <50457@apple.Apple.COM> Sender: news@dartvax.dartmouth.edu (The News Manager) Organization: Dartmouth College, Hanover, NH Lines: 20 In article <50457@apple.Apple.COM> chuq@Apple.COM (Chuq Von Rospach, net.god {retired}) writes: > Close. Under HC 2.0 (I'm not sure about 1.x) you can use clickline to find > out where the cursor is: > > on idle > put the clickline into msg > pass idle > end idle > > in the stack script will show you how it works. I think it's selectedLine, not clickLine, that's needed. clickLine identifies the most recently clicked line in a *locked* field, whereas selectedLine gives the line containing the current selection (of which an insertion point is a special case). And it works in HyperCard 1.2.x. Susan Tenney Dartmouth College Computing Services