Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tame the DE & CA when they belong to a form class
Message
From
12/10/2006 18:15:56
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
To
12/10/2006 08:53:54
Max Chen
Yx Software
Shunde, China
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 2000
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01161424
Message ID:
01161611
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hello
>
>Form base class does not support DataEnvironment, how sad.
>
>So I drag the DE to my FORM class and active the Builder, very thing Good.
>
>But one thing make me crazy, the dragged DE does not auto open CAs it contained. So form loading fail because alias not exist.
>
>I have to change my code hardly, set form.bindcontrols=.f., and the all control's init code, how disapointed.
>
>Any easy solution ?

Push the DE object into the background, so it instantiates before anything else. Even better, create it it programmatically in form.load, so it gets created first, before the controls.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform