>Hi Fred,
>
>>That almost works. The problem is that the INIT event fires for the class. It seems to me I remember there being some way to create an object WITHOUT firing the INIT event. You wouldn't happen to know how to do that, would you?
>
>DEFINE CLASS myClass as Custom
> ADD OBJECT Name AS OtherClass NOINIT
>ENDDEFINE
>
>The NOINIT option does only work for added objects, not for the class itself. You could try whether you can call the SaveAsClass method of the contained object to create a new class of that type. I suppose you are doing it all in the development environment, so creating the code above on the fly should not be a problem.
>
>Christof
Thanks Christof, I'll give this a try!