John,
>any instructions on how to use sys(1270)?
>?sys(1270) returns an error code of 9 - data type mismatch
It's very simple to do *and* you don't need to create any additional flags at the form level that clutter up the interface. SYS(1270) returns an object reference to the object under the mouse pointer. So you can do a simple check to determine if the user has clicked on the object of interest.
Let's say focus is on object A and the user clicks on object B. You can put the following code in object A's Valid():
IF SYS(1270) = ThisForm.ObjectA
*--- Place processing code here
ENDIF
I prefer this approach because it's self-contained and thereby a cleaner implementation.
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com