Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Business Objects, what base class to use
Message
De
25/06/2004 00:55:41
 
 
À
24/06/2004 10:08:59
Charlie Schreiner
Myers and Stauffer Consulting
Topeka, Kansas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00916597
Message ID:
00917092
Vues:
10
Thanks to all for your answers. As I see there is no "absolute" solution. VFP is very well known for having several routes to solve a problem. Most of the times it's an advantage, but sometimes can be a disadvantage.

>Hi Jaview,
>I use several different classes. DE, Container, Relation, Session, etc.
>Remember, if you design using a class like Container, you can always put it in it's own private datasession by using a Session object to create it.
>
>oPS = NEWOBJECT("SessionBase", "SessionBase.PRG")
>oBiz = oPS.Create("MyBizObj", "Some.PRG")
>
>************************************
>DEFINE CLASS SessionBase AS Session
>   PROCEDURE Create (ClassName, ClassLib)
>       RETURN NEWOBJECT(m.ClassName, m.ClassLib)
>   ENDPROC
>ENDDEFINE
>
>
>>Hi all, I use Session class for my business objects, but I don't really know if DataEnvironment class would be a better class (or any other for that matter).
>>
>>I'm seeking for advice on which class is more suited for business objects, and what are the pros and cons of using one approach or the other.
>>
>>Thanks,
>>Javier.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform