Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Private datasession for a class
Message
De
12/06/2002 13:20:28
 
 
À
12/06/2002 01:07:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00666940
Message ID:
00667514
Vues:
30
>Look at Message#592548 for an example of how to do what you want.

Hi Albert,
I looked at Message#592548 and found it very enlightening

BUT, did you see Joel Leaches response to my question? He seems to have found an even better way of having a class use a Private DataSession.
Define Class myCustom as Custom
  oDS = .null.
  Procedure Init()
    This.oDS = CreateObject('session')
    Set DataSession to (This.oDS.DataSessionID)
  EndProc
  Procedure Destroy()
    This.oDS = .null.
  EndProc
EndDefine
I tried it and it seems to work.
Would you comment please?

TIA
Bill Morris
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform