Utility components CreateNew
Creates a new VarDictionary collection. Equivalent to a call to the CreateObject function (or new ActiveXObject in JScript) but also copies the behavior properties to new object. It is more convenient to use this method instead of calling CreateObject.

Syntax:

object.CreateNew()

IDL definition:

[id(17)] HRESULT CreateNew([out,retval] IDispatch** ppNew);

Parameters:

object - Previously created VarDictionary object

Examples:

Set newObject = vardict.CreateNew

Remarks:

This method will create new VarDictionary collection and configure it to behave as the collection being called. Only the behavior properties are copied.

This should be more convenient even if the behavior is not important - it is shorter than a call to the CreateObject.  

Applies to: VarDictionary

newObjects Copyright 2001-2005 newObjects [ ]