Caret/insert position in field

DunbarX at aol.com DunbarX at aol.com
Fri May 14 11:54:21 CDT 2010


You sort of already had it. Wouldn't:

on mouseUp
    get lineoffset(yourChar,yourField) 
    answer offset(yourChar,the value of line it of fld yourField) 
end mouseUp

do?

Do you really always have the line you need? Or is that part of the issue? 
As for false positives, this will only give the first instance of the 
character. How do you know which instances are valid?

Craig Newman



More information about the use-livecode mailing list