Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use dataenvironment subclass
Message
From
27/07/2006 23:43:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01140554
Message ID:
01140953
Views:
27
>>>I've just started to explore the dataenvironment and cursoradapter as subclasses. I am wondering if there is a way that is generally accepted as better than others for using these classes. It appears that I can either drop a DE class on a form, instantiate it in code in the form init, or use the DEclass property. Of those three methods which way is considered best? (or if there is something I don't know about please enlighten me!)
>>
>>Um... not the form's init, but form's load. You want the tables open before the controls instantiate, and form's init happens later.
>
>Of course... I'd have caught that.
>
>> You can use the new .bindcontrols property and bind them after DE object is created.
>
>My real question is though... which method is generally accepted as the best way to instantiate a DE class? Drop the DE on the form? Call it up from code? Use the DEClass property?

No preference there from me - my forms don't have a DE.
I figure that'd be a matter of your style, whatever you feel is the easiest to maintain. And I doubt there's any significant speed difference between the three.

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