Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Custom object data session?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00710978
Message ID:
00711005
Vues:
14
Ah, so that's the problem, then. It is a global object since it holds information it needs to gather the data. I guess I could instantiate it from the forms. Just means that if the data source ever changes, I'll have to change every one of my forms. :( Kinda defeats the purpose.

Thanks for clearing that up. I'm trying to do things the proper way now and finding that it's a lot more difficult.

Michelle

------------------------------------------------------------------------------

>Hi Michelle
>For the object to share the form's datasession, it must be created by the form, i.e. on the Load or Init methods. And of course, it should not inherit from the session base class.
>If it is a global object (created within the DEFAULT data session) it will remain that way no matter who's using it.
>
>BTW, do NOT try to switch datasessions with SET DATASESSION TO... it is explicitly documented as "for debugging purposes only" and it is not reliable.
>
>Regards
>Jose.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform