When has a field changed?
    Mark Schonewille 
    m.schonewille at economy-x-talk.com
       
    Tue Oct 25 19:36:00 EDT 2011
    
    
  
Hi James,
In addition to my previous field script, for your button:
on mouseUp
  if the changed of fld "Whatever" is true then
    // continue
  end if
end mouseUp
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Become our partner in sales http://qery.us/16r Start selling Color Converter today. 20% commission!
On 26 okt 2011, at 01:24, James Hurley wrote:
> Thanks all for the info about the effect of closeField. 
> 
> I have assumed that it was called only when a field is closed.
> 
> As you point out  it is also called when the field loses focus.
> 
> It appears that that will happen when one clicks in another field or on the card, BUT not when one immediately clicks on another button.
> 
> That would be a problem in my application. The user could change the field and then immediately click a button, a button that will not see the effect of the chance in the field.
> 
> My tortured script at least sends the "change" message as soon as the mouse leave the field.
> 
> Jim
    
    
More information about the use-livecode
mailing list