Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I set the property of a button from a procedure?
Message
 
À
16/04/1998 11:27:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00092543
Message ID:
00092656
Vues:
21
>How can I set the property of a button from a procedure?
>From a menu option and in a procedure file, I want to enable
>a button on my form. any ideas?

Rob,

I think you and Ed were getting lost in all the auto-replies. Here's what I believe what Ed was telling you.

1. In order for this to work, you'll first need a global variable that can be initialized from the menu. For the sake of this example, I'm calling it goForm.

2. In you're menu command line, assuming that the form is MyForm, you'd have:

DO FORM MyForm NAME goForm LINKED

3. Now to set a command button as enabled, assume its name is MyCmndBtn in your proccedure:

goForm.MyCmndBtn.Enabled = .T.

That should do it. Ed, isn't this what you were trying to tell Rob.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform