How many words from start of text to my selection

Bob Sneidar bobsneidar at iotecdigital.com
Mon Apr 24 10:50:48 EDT 2017


I've seen a similar thing. I set the focus to a field, then "select after field xxx". Sometimes it does what you expect, sometimes it selects the text of the whole field. Send in time is the only way around these timing issues. 

Bob S


> On Apr 23, 2017, at 01:10 , Mark Schonewille via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> HYi Kaveh,
> 
> LiveCode sets the focus to the clicked object after running the scripts. If I would select text the normal way, the selection would be deselected again, because the focus would go away from the field to the button containing the script. Using the send in time command, I make sure that this command is executed after LiveCode completes its routines, also after LiveCode sets the focus.
> 
> If you use a different way to execute the script rather then from a button or other object that is activated by a click, you won't need this last line.
> 
> Moreover, sometimes I have this problem and sometimes not. I haven't figured out why. At least, when it occurs, there is a way to solve it.
> 
> Kind regards,
> 
> Mark Schonewille





More information about the use-livecode mailing list