Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disable/Enable a command button
Message
De
07/12/1999 18:54:57
 
 
À
07/12/1999 18:41:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00300087
Message ID:
00300103
Vues:
25
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?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform