Composite objects CreateObject
CreateObject method

Creates composite object from a definition.

Syntax:

Set variable = object.CreateObject( definition [, bController [, defType]])

Parameters:

definition - A composite definition. This can be a definition file in text or binary format, registry branch or a binary stream containing the definition.

bController - Optional. Default is False - returns the composite object created, If set to True the composite is created and the VaryDisp object attached to it is returned. This allows the application to use the definition as base - then add some more members/objects for example.

defType - Optional. Default is 0 (automatic). This can be used to help the method to determine the format/type of the definition. These flags are defined:
&H0001 - Binary file
&H0002 - Text file
&HXX03 - Registry, The high order byte contains the registry branch code:
0 HKEY_CLASSES_ROOT
1 HKEY_CURRENT_USER
2 HKEY_LOCAL_MACHINE
3 HKEY_USERS
4 HKEY_PERFORMANCE_DATA
5 HKEY_CURRENT_CONFIG
6 HKEY_DYN_DATA
&H0004 - binary stream - A SFStream object is passed or an object that supports IStream interface.

Examples:

 

Remarks:

...

Applies to: VaryDispCreator object

newObjects Copyright 2001-2006 newObjects [ ]