>>DEFINE CLASS oC AS CONTAINER >> ADD OBJECT oL AS LABEL >>ENDDEFINE >>******and: >>DEFINE CLASS oC2 AS CONTAINER >> PROCEDURE INIT() >> THIS.ADDOBJECT("oL2","LABEL") >> ENDPROC >>ENDDEFINE >> >>DEFINE CLASS oL2 AS LABEL >>ENDDEFINE >>>
>- the init() sequence >- the ZOrder and TabIndex position >- as work .RemoveObject(): leave a Zombi with ADD OBJECT >Fair enough. I thought of the first two, the third seems a bug. But my point was that, regardless of which option is used, interaction with instances of the container ar runtime will be the same? FWIW, I tend to use the second way everytime - seems simpler to code, simpler to understand and more flexible. Any good reasons to use the 'ADD OBJECT' approach?