Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object reference?
Message
De
16/02/2016 19:36:17
 
 
À
16/02/2016 19:09:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 7
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01631578
Message ID:
01631579
Vues:
102
>When an object, a button for instance, is clicked - does VFP have any 'variable' identifying the object clicked, that can be used in decisions as to what other objects on the form are then enabled, or disabled?
>
>Thanks

If an object is clickable, in its Click event "This" references the object. So, if you have a method in the form - named, say, ControlStatus - that enables or disables objects according to which form object was clicked, you can pass that reference as a parameter:
Thisform.ControlStatus(This)
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform