Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Class keeps changing DataSession
Message
De
01/08/2002 09:37:42
 
 
À
31/07/2002 17:54:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00684772
Message ID:
00684947
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform