>(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.aspHTH