Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Custom object data session?
Message
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00710978
Message ID:
00711005
Views:
13
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform