How to tell if a field is "closed"?

Bob Sneidar bobsneidar at iotecdigital.com
Wed Feb 6 11:58:52 EST 2019


The problem with using closeField in this instance is that it only gets triggered when you exit the field AND changes have been made. That means you can trap once for the bad data, but if the user does not correct the bad data and clicks Import again, since the data did NOT change the second time, closeField will not trigger. 

The solution is to use exitField instead. That way simply refocusing on the errant field will trigger an exitField whenever it loses focus. 

Bob S


> On Feb 6, 2019, at 08:55 , Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> You beat me to it Mark! :-)
> 
> Bob S
> 
> 
>> On Feb 5, 2019, at 11:53 , Mark Waddingham via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> Then in your import button do:
>> 
>> on mouseUp
>>   focus on nothing





More information about the use-livecode mailing list