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@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@lists.runrev.com> wrote:
>> 
>> Then in your import button do:
>> 
>> on mouseUp
>>   focus on nothing


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to