AbstractObject Method

Object List Next Object

Defined By:
ObjectTools

Description:

Creates a new prototype object for a given object.

Declaration:

Function AbstractObject(ByVal o As Object,ByVal optname As String) As Object

Details:

AbstractObject creates a new top-level prototype object, called name, for the object obj. Obj may be either an embedded object or a top-level object. The given name for the new prototype must be a valid identifier for a top-level object. AbstractObject returns the new prototype object.

For an embedded object that is itself a prototype, the new prototype takes over the definitions of all properties and methods that were defined by the embedded object.

For a top-level object, the new prototype is always empty. In other words, the new prototype does not take over any definitions of properties or methods from the object.