> On Nov 8, 2016, at 7:32 PM, John DeSoi <[email protected]> wrote:
> 
> It has the same problem as OBJECT Get pointer(Object with focus). In the form 
> method, the value it returns in the On Clicked event is not necessarily the 
> one the user actually clicked on. Example: A boolean field has focus and the 
> user clicks on a non-focusable button. The function returns the field's 
> object name even though the user clicked on the button.

I think the best solution (for me) is to use Modified to test the status of the 
boolean field that has focus. I was thinking it was like Modified record and 
would always return True on new or duplicate records. But it appears to only 
return True if the value is actually changed on the form. The docs say:

> Since an object method is sent an On Data Change event whenever a field is 
> modified, the use of an object method is equivalent to using Modified in a 
> form method.


Thanks for all of the feedback and suggestions.

John DeSoi, Ph.D.
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to