Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataenvironment vs. cursoradaptor class
Message
De
20/10/2004 23:44:25
 
 
À
15/10/2004 12:45:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00951566
Message ID:
00953208
Vues:
20
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform