Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can be read method code at runtime ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00292948
Message ID:
00293069
Vues:
28
>>If you just need to access it, do you mean call it from somewhere? The syntax >is: ThisForm.control.method()
>>
>>For example, ThisForm.txtMyTextbox.Init()
>
>Erm...thanks for the tip Mat but our problem is slightly more complicated than that. We wish to access the actual method CODE at runtime, as a developer aid to check DODEFAULTS exist where they should.
>
>Any ideas ?
>
>Jon.

Jon,

I thought your question was more in depth than that, but I had a hard time understanding the heart of your problem from the original post. Now that I see what you are trying to do, I tend to agree with Eric. While I am not questioning your design, I also don't like adding alot of runtime code to ensure the developers are doing their job correctly. I work with a commercial framework (Mere Mortals), and I know that whenever I subclass or create an instance, dodefault() is the first thing I think about before I add new code to an existing method. If you use the Superclass utility, it is very easy to check the class heirarchy at design time.

Kind Regards,

Mat
Matthew Kennedy
Decision Support Technology Inc.

"I try to take one day at a time, but sometimes several days attack me all at once." ~ Ashleigh Brilliant

New Jersey Dot Net User Group
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform