Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement