Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a way to tell...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00455656
Message ID:
00456270
Vues:
33
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform