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?
_______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode