Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to tell...
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00455656
Message ID:
00456270
Views:
31
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform