Mark wrote:
>However, I know of no easy
>way of calculating the character count without using a repeat loop to get
>the characters up to the first character of a line, hence the repeat loop in
>the above example.
So it evolves into:
property pMbr, pTxt, pPrevLine
on beginSprite me
pMbr = sprite(me.spriteNum).member
pTxt = pMbr.text
end
on mouseWithin me
vLine = the mouseLine
if vLine = pPrevLine then return
pPrevLine = vLine
startChr = 1+(vLine>1)*(1+pTxt.line[1..vLine-1].char.count)
endChr = pTxt.line[1..vLine].char.count+1
pMbr.char[startChr..endChr].hilite()
end
on mouseLeave me
pMbr.Line[pMbr.Line.count+1].hilite()
pPrevLine = -2
end
Jakob
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]