Caret/insert position in field

DunbarX at DunbarX at
Fri May 14 12:54:21 EDT 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 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