Page 1 of 1

on focusOut - not working?

Posted: Mon Aug 18, 2014 7:43 am
by Garrett
Couldn't get on focusOut to work in a project so I started a new project with two edit fields and applied a on focusOut sub to one of them and tabbed in and out of each of them and nothing.

Is there a property I need to set for this to work?

Thanks,
~Garrett

Re: on focusOut - not working?

Posted: Mon Aug 18, 2014 9:22 am
by Mark
Hi Garrett,

FocusIn and FocusOut don't work with editable fields. Use exitField and closeField instead. This is discussed in the LiveCode dictionary. Please, make sure to read the dictionary entries about exitField and closeField, as they are quite different.

Kind regards,

Mark

Re: on focusOut - not working?

Posted: Mon Aug 18, 2014 5:45 pm
by Garrett
thank you Mark.

I did read the dictionary on this and exitfield and closefield. It confused me and I did not realize that the edit field was not able to use the focusout.

Thanks again, :-)
~Garrett