Re: Release object in a procedure by Holger
Holger
Thu Jun 24 02:41:01 CDT 2004
Hi,
> PROCEDURE DestroyMyObject
> PARAMETERS TheObject
> RELEASE TheObject
> ENDPROC
>
> I tried to call it with @ but it has no effect.
> How can I release my parameters in a procedure ? Is it
> possible ?
I ask myself, why someone should do that ?
If you want to delete an object, that exists in a containership, you can use
the REMOVEOBJECT() method of that container. Each container class provides
that method.
If you want to delete an object, whose reference is in a variable, just set
the variable to .null. !
--
Holger Vorberg
MS Visual FoxPro MVP, Germany