Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dereferencing/releasing an object
Message
De
27/11/2001 15:37:10
 
 
À
27/11/2001 13:43:58
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00586488
Message ID:
00586604
Vues:
25
>(VFP 7 and Windows 2000, SP2)
>
>I have a form method with a local object, loParameters, created as custom. It has several properties and another custom object, loParameters.SearchOptions.
>
>I pass object loParameters to a modal form. In the modal form's INIT event the parameter object is stored to a form property object and in the modal form's UNLOAD event this form property object is returned to the calling method.
>
>In the calling method if I then attempt to issue the assignment, "loParameters.SearchOptions = .NULL.", I get the error, "SEARCHOPTIONS is a method, event, or object". If I attempt to RELEASE it I get the error "Must be a variable or array".
>
>Questions:
>
>1) Am I mistaken in my thinking that I should be able to RELEASE or assign .NULL. to object loParameters.SearchOptions?
>
>2) Is "RELEASE loParemeters" or "loParameters = .NULL." sufficient to fully free up object loParameters.SearchOptions?
>
>Thanks!

See this FoxTalk article by Doug Hennig at MSDN: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnfoxtk99/html/FT99J8.asp
HTH
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform