Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class keeps changing DataSession
Message
From
01/08/2002 09:37:42
 
 
To
31/07/2002 17:54:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00684772
Message ID:
00684947
Views:
21
>I have a sub-class that changes DataSession when a method is called.
>The method in the sub-class does not exist in the parent-class, but the method that calls it does exist in the parent-class.
>I don't instantiate the parent-class, just the sub-class. In the parent-class code I've tried specifically setting the DataSession to the one it's currently in, but when the sub-class code is called, the DataSession immediately changes to 1.
>The Object is initially instantiated in DataSession 1, but I change to the proper one before calling the sub-class code.
>This was originally working, but I was still improving it, and can't figure out what I could have done that caused it to quit working.
>
>TIA

The datasession the object runs in is always the one it was created in. If possible, try to instantiate the object in the correct datasession. If not, try to change its DataSessionID property. This is said to be readonly but I think people have been able to change it.

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform