Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable/Enable a command button
Message
From
07/12/1999 18:54:57
 
 
To
07/12/1999 18:41:14
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00300087
Message ID:
00300103
Views:
26
Hi Mike,

>Simple question, but giving me a hard time. How do I disable or enable a command button using the THIS or THISFORM command.

It depends where you are calling this, if it is a method of the button you want to disable, you can do:

This.Enabled = .F.

If not, you can use the form in the path:

Thisform.Command1.Enabled = .F.

You will have to designate by name any contianers the button is on that is not the form between "Thisform" and "Command1". There is a third "relative" path keyword you can use too: Parent. It is usually used with This:

This.Parent.Command1.Enabled = .F.

Is this what you wnat?
Previous
Reply
Map
View

Click here to load this message in the networking platform