>Hi,
>
>I need to add code to OpenTables() of every form in my project - to handle sql connections - so I need to do this in classes.
>I saved a DE class, put that class in my baseform class by setting DEClass.
>When create a new form based on that baseform the DE is all readonly and can't add tables to it.
>
>What I do wrong?
>
>Thanks.
Cristian,
You did nothing wrong. However, contrary to what you've been told, this behavior is by design.
Between versions 7.0 and 8.0, I got a call from my friend John Koziol. I've known John and been friends with him since before we became MVPs and, certainly, long before he went to work for the Fox team and Microsoft.
During this conversation, he asked what I'd like see in 8.0. I told him that because I have a number of forms that use exactly the same data environment, I'd like to see a sub-classable DE. That way I could have one form and instantiate the DE at run time based on the parameter I passed.
Apparently, the Fox team took my suggestion and implemented it. It's exactly what I'd hoped for.
George
Ubi caritas et amor, deus ibi est