Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a paramater that a control can see in it's init.
Message
 
À
13/11/1999 18:46:08
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00290802
Message ID:
00291030
Vues:
43
>>Right, I didn't see that. I always forget about them. I opted to create a AfterFormInit method. I'll probably find use for it elsewere. thanks.
>
>Well, it depends on the behavior you are after, if this is a resuable part of your framework, you might need to go the AfterFOrmInit() route, otherwise, if you wanted change the caption of a button depending on a parameter sent ot he form, just set it in the forms Init().

I wish it was that simple. I needed to bind a control based on the parameter. It actually turned out to be easier than I thought. Erik Moore had posted some code to recursively run a method in every object in a container. So it was just a matter of adding the method to my base classes. Took about 20 minutes.
Roi
'MCP' Visual FoxPro

In Rome, there was a poem.
About a dog, who found two bone.
He lick the one, he lick the other.
He went pyscho, he drop dead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform