How many words from start of text to my selection

Kaveh Bazargan kaveh at rivervalleytechnologies.com
Sat Apr 22 10:05:38 EDT 2017


Wonderful :-)

Can you give me a hint of this line please:

send "select word" && myChunk && "of fld 1" to me in 0 millisecs

Why not just

select word" && myChunk && "of fld 1"

On 22 April 2017 at 12:33, Mark Schonewille via use-livecode <
use-livecode at lists.runrev.com> wrote:

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



-- 
Kaveh Bazargan
Director
River Valley Technologies
@kaveh1000
+44 7771 824 111
www.rivervalleytechnologies.com



More information about the use-livecode mailing list