Hi Tom
>Hmmm. I see that no one understands my question. First of all, I meant to write NODEFAULT in the previous sentence above. (My original version of this message had DOdefault there.) Sorry for that confusion.
>
>Let me put it this way. I have refresh event code in my SCX. I also have refresh event code in my form class. How do I get them to both execute, without executing the Refresh method in all my objects on the form more than once? This should be simple, no?
It depends. I'll ask again, what version of VFP are you using? As I told you, there was a bug in VFP 5.0 which caused this behavior. It was fixed in VFP 6.0.
Hopwever, if the class you are calling is a first level sub-class, and IT includes a DODEFAULT(), then it will force the base class code to execute. Do you have that situation?
If you do not fall into either category, then simply calling DODEFAULT() followed by a NODEFAULT in the instance will ensure that only ONE refresh occurs.
If you are seeing something different, then there must be something somewhere in your code (either the class, or the instance) that is causing it to happen because I can do exactly what you describe using base classes
----
Regards
Andy Kramek