Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Wiping out (data)Session object
Message
De
27/05/2008 09:22:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01319497
Message ID:
01319641
Vues:
19
>>>>
>>>Calling Destroy() method directly (or release method directly) works?
>>>
>>>E.g. array[i].Destroy()
>>> array[i] = null
>>>
>>>?
>>__
>>Calling Destroy() will not work, I assume.
>>
>>One possibility is to subclass Session, add a release method and call that - that may work - not tested
>>
>>
>>define class MySession as Session
>>
>>function Release()
>>  release m.this
>>endfunc
>>enddefine
>>
>
>
>I would not have thought to use m.this. What is that exactly? Obviously it's a memvar pointing to the object, I just didn't know one was created automatically.

___
This is always there whenever an object is created

It just happens to work - do not ask me why
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform