>How about adding a logical field, ie., lRecordHookActive, and setting it to .T. when you have code in the method.
Yes, I thought about that but I don't want to hold a property for something that I think can be done automatically. I can either do it by having the method to store the HTML in a This.cHTML property in the RecordHook() method or to have a mechanism to detect if I have some code in it. I think I'll go with the first approach.