After reading the entire thread, I need to clarify. Using the Class Browser to generate code from classes that have containers isn't runable. The ADD OBJECT.CONTROL.CONTROL.CONTROL is bogus.
But for classes that have no containers, all you have to do is add:
PUBLIC ox
ox = CREAT([foo])
ox.SHOW
after the initial comments for the code to run.
Dave
>They can be run, but you have to add:
>
>
>PUBLIC ox
>ox = CREAT([foo])
>ox.SHOW
Dave
>
>>>>The class browser allows you to "View Code" but this code can be unreliable, particularly when containership is involved.
>>>
>>>Really? I know when I have say command buttons on a form class, the add object stuff isn't runable (like you said), but when else?
>>
>>Hi Mike,
>>
>>I havent gone much farther than dealing with the fact that composites cant be run.
>>
>>Rick