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:
00092713
Vues:
27
Robert,

You need to step back and ask why you want to do this in the first place. What is the overall goal? What is a reasonable OO, if applicable, solution? A lot of the code being thrown around in the thread is permanently attaching code in a prg file to some specific named form and some specific named button. There is zero reuse there.

You have a lot of options, here's a couple:

1. use a button class that is smart enough to know how to enable/disable itself.

2. use some sort of manager object that you pass a reference of the button to

Have you read any of the VFP books out there? My Pros Talk VFP OOP book does a lot of basic inter-object communication stuff like what you are trying to undertake here.

>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform