Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can I use two CAs on the same form?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01106677
Message ID:
01106707
Vues:
27
>>Hi everybody,
>>
>>I have CA class for an Address table that I created using Mark McCasland builder. Now I need to use this class (two instances of it, I assume) on two different pages of the pageframe. What would be my best solution:
>>
>>1) Use the same object (class instance) for both pages and move it to the form instead of the pages. Requery CA every time I switch between pages?
>>
>>2) Create a separate complete copy of the class (and BO class) and use an instance of a separate CA and BO class for the second page? This would mean code duplication... :(
>>
>>More ideas? I'm using MereMortals framework...
>
>You could use it two instances of the CA, just change .Alias.
>About what is better, all depends. Is there a big differences between information that both pages reuqired, if so I would prefer to use two instances and refresh/update only then when I needed. But If the information is similar (and not big) just get all information in one CA and then only filter it when you switch the pages.

I've decided to go with two separate BO classes and two separate CA classes too. The CA classes I've just finished creating, now I'm going to do the BO classes, then forms changes...
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform