Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Release Property
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00306719
Message ID:
00307382
Vues:
24
>>Hi,
>> I have the following statement, ...
>>
>>
>>form.Init
>>THISFORM.osecurity = NEWOBJECT("osession", "mysession.prg", para1, para2)
>>
>>form.queryunload
>>THISFORM.osecurity = .NULL.
>>
>>
>>Does it release the reference?
>
>Yes it will as long as there is no other reference. How would you get another reference, well if any code anywhere says;
>
>Something = FormName.oSecurity

It occurs to me that QueryUnload sometimes does not get fired (for example if you trigger thisform.release() directly); the Release event of the Form should release the property IAC, destroying the object in the process if no other refs exist.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform