Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DataEnvironment class
Message
 
To
02/08/2004 03:10:34
Cristian Tenea
Aquila Part Prod Com
Ploiesti, Romania
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00930039
Message ID:
00930233
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform