=aselobj(aObs [, n]) && check this additional parameter in help cMethodText=MyMethodBuilder() && here you build the method aObs[1].writemethod(cMethodName, cMethodText, <b>.t.</b>)Be careful not to invent a method in a contained object, because it will get there, stay there for a while, and then vanish just like that. Adding methods to member objects was not in the design, it accidentally works and also accidentally stops to work.
=aselobj(aObs [, n]) cMethodText=MyMethodBuilder() aObs[1].addproperty(cMethodName) aObs[1].writemethod(cMethodName, cMethodText)In this case, you have to close and save immediately after this, and reopen - the method should be there. I got this trick to work a couple of times, but it also failed a few times, so I'm not sure when it works and when not. Anyway, ingenious as it is, it came just too late, when we already got this in VFP7.