Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataenvironment vs. cursoradaptor class
Message
From
20/10/2004 23:44:25
 
 
To
15/10/2004 12:45:10
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00951566
Message ID:
00953208
Views:
19
I have a class called DataManager that I load in the Load event of my form. This DataManager has code to read a table, get a list of CA's and their properties like selectcmd, filter etc foe the current form and then adds them to the DE of the form and fills them wit data ready for the formObjects.

At any time if I need additional data on my form I open the table and add an entry for the CA.

Works like a charm


>Yes, that is cool! Any suggestions on the best place to put the DE class? Do you do it code (maybe in the form.Load()) or add the visual class to the form?
>
>thanks
>
>bonnie
>
>>>Is there any advantage to using one DE class (containing muliple CursorAdaptor classes) on a form vs. just creating CA classes seperately and pulling them in to the form?
>>>
>>>thanks
>>>
>>>bonnie
>>
>>
>>The only advantage I see is that You can use the same DE class in many forms that use the same CAs w/o add them in DE one by one. I love that.
Previous
Reply
Map
View

Click here to load this message in the networking platform