How many words from start of text to my selection
Mark Schonewille
m.schonewille at economy-x-talk.com
Sat Apr 22 07:33:05 EDT 2017
This tells you the number of the selected word:
on mouseUp
put the selectedChunk into myChunk
put word 4 of myChunk into myChunk
put the number of words of char 1 to myChunk of fld 1
send "select word" && myChunk && "of fld 1" to me in 0 millisecs
end mouseUp
Kind regards,
Mark Schonewille
http://economy-x-talk.com
https://www.facebook.com/marksch
Buy the most extensive book on the
LiveCode language:
http://livecodebeginner.economy-x-talk.com
Op 22-Apr-17 om 13:18 schreef Kaveh Bazargan via use-livecode:
> I have selected some text in a field. I want to convert that to "word xxx
> of fld yyy". Any hints on how I do that?
>
More information about the use-livecode
mailing list