Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object.Enable
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00394572
Message ID:
00395095
Vues:
12
Looks like Jim answered this for you already. As he said, you cannot reference the controls before the form is run because they don't exist until the form exists. Passing a parameter to the INIT() method allows you to set the desired enabled/disabled state of the controls before the form becomes visible to the user, which accomplishes what you want from the user's point of view.

>I guess i didn't ask my question clearly. I want to disable and enable the button in my code before the form is run. Depending on which program runs, the button will be enable or disabled.
>
>I don't know how to refer to the button in the object. When I modify the form and the buttons I see "optionsgroup1" then the buttons as "option1" , "option2" etc. This is what I don't know how to refer to in code.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform