selectedField in 2.7 not working

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


xavier.bury at clearstream.com 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:

<http://support.runrev.com/bugdatabase/show_bug.cgi?id=3327>

--
  Richard Gaskin
  Managing Editor, revJournal
  _______________________________________________________
  Rev tips, tutorials and more: http://www.revJournal.com



More information about the use-livecode mailing list