Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dereferencing/releasing an object
Message
From
27/11/2001 13:43:58
Spencer Redfield
Managed Healthcare Northwest, Inc.
Portland, Oregon, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Dereferencing/releasing an object
Miscellaneous
Thread ID:
00586488
Message ID:
00586488
Views:
43
(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!
Next
Reply
Map
View

Click here to load this message in the networking platform