silly text editing question

DunbarX at aol.com DunbarX at aol.com
Thu Mar 19 17:20:35 EDT 2009


This is a Kluge, but works. I had a field "field1" with some text selected in 
it, and a button with this in it

on mouseUp
put word 2 of the selectedline into lineNum
    put word 4 of the selectedChunk into lastChar
    put the number of chars of line 1 to (linenum - 1) of fld "field1" + 1   
into preceding
    answer the number of words in char preceding to lastChar of fld "field1"
end mouseUp

It returns the number of the word in the selected line.

Craig Newman


**************
Great Deals on Dell 15" Laptops - Starting at $479 
(http://pr.atwola.com/promoclk/100126575x1220029050x1201385914/aol?redir=http:%
2F%2Fad.doubleclick.net%2Fclk%3B212974460%3B34272906%3Bh)



More information about the use-livecode mailing list