Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding public object and Data Session
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01319198
Message ID:
01319206
Views:
21
>Good morning,
>
>Say you have an object (based on CUSTOM class) declared PUBLIC but instantiated in a form with Private Data Session. Does it mean that the methods of this object will be always be using Private Data Session? That is, tables open or cursors created in a method of this object are not available outside of the object/method?

Here is the catch - when you create an object, unless it's a session based class it always shares the DS of the calling process.

I do remember I was hit by this pretty badly once and only with Dragan's help was able to figure out the root of my problems.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform