Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object reference?
Message
From
16/02/2016 19:36:17
 
 
To
16/02/2016 19:09:52
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01631578
Message ID:
01631579
Views:
103
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform