selectedField in 2.7 not working

Richard Gaskin ambassador at
Thu Feb 16 10:46:05 EST 2006

xavier.bury at wrote:
> i just did a "basic" test in 2.6 and 2.7. 
> In both cases the selectedfield returns "field x"
> what i think is happening is that on your mouseup, you unselect the 
> field's selection... Which i verify...
> what you need is this kind of script in your button:
> local lastselection
> on mouseenter
>   put the selectedfield into lastselection
> end mousenter
> on mouseup
>   put lastselection
> end mouseup

Good workaround for a limitation that is understandable but hopefully 
extended in the future as described here:


  Richard Gaskin
  Managing Editor, revJournal
  Rev tips, tutorials and more:

More information about the Use-livecode mailing list