Hi Dragan,
>PEMSTATUS(this.Parent,this.Name,6)
>It will return .f. for added objects, and .t. for objects already there.
I've just checked your solution. Works great for forms that are instantiated from a class. But when working with an scx, pemstatus always returns .F. But this is ok, since I'm currently working with form classes only.
I played with some other things as well, but I can't find an easy solution that can determine whether an object was added at runtime which also works in an scx. I think the way to go there will be to set a flag in the form, that's set to .T. at the beginning of it's Init and having the controls to check that property. Besides you have another idea ... ?
Thanks again,
Armin