>>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