Explicitly releases an object from memory.

Syntax

RELEASE OBJECT <oRef>

<oRef>

An object reference to the object you want to release.

Description

RELEASE OBJECT functions identically to the release( ) method. See release( ) for details.

Because release( ) is a method, its use is preferred, especially when called from a method. But release( ) is not a method in all classes. Use RELEASE OBJECT when the object does not have a release( ) method, or to release an object regardless of its class.

If <oRef> is a variable, RELEASE OBJECT does not release that variable, or any other variables that point to the just-released object. Testing these variables with EMPTY( ) will return true once the object has been released.