GetSharedObject method

Applies to

Description

Returns the shared object that was specified by the SetSharedObject method.

Syntax

[ReturnObject =] Object.GetSharedObject (ObjectName, ReleaseObject)

Part

Data type

Description

Object

Object

An object expression that evaluates to an object in the Applies To list.

ObjectName

String

Name of the Object to get.

ReleaseObject

Boolean

If ReleaseObject is True, the reference count of the shared object is decreased by one. If ReleaseObject is False, the reference count is not affected.

Settings

Return value

Data type: Object – the specified object if found. Otherwise, NULL is returned.

Remarks

When an object’s reference count reaches 0, the object is automatically destroyed.

Classic method

GetSharedObject