Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private datasession issues..
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00153491
Message ID:
00153715
Vues:
22
Michiel,

If that method were a method of your form class then it would work in both private DS and default DS forms. That's the way I handle SETs that are scoped to the DS. If you look at the HELP DATASESSION topic it shows the SETs that have DS scope.

>At the moment we did the following: We created a method in our oMethod object. This is called InitSet(). In this procedure we have all our usual SET commands. We then call this routine in the BeforeOpenTables event of our dataenviroment of our PrivateDataSession form like this: oMethod.InitSet(THISFORM.DATASESSIONID). At the beginning of our InitSet() method we have the following:
>
>LPARAMETER mDataSessionID
>SET DATASESSION TO mDataSessionID
>
>What about this? Is this the right way to do it? I read the SET DATASESSION help and it said it will switch to the datasession you specified. How do you get back to a GlobalData session (or other datasession which are used)?? Or does VFP return to the global datasession when the form is closed?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform