Clone

The Clone method of the Dimension interface copies the properties and levels of an existing object to a target object of the same class type.

Applies To

clsDatabaseDimension

 

Syntax

object.Clone(TargetObject [, CloneOptions])

object
The object whose properties and levels are to be copied.
TargetObject
A previously created object of the same class type.
CloneOptions
The options to tell the method to what extent the source object should be duplicated.

 

Option Description
cloneObjectProperties The values of the properties of the source dimension are copied to the target dimension.
cloneMinorChildren The values of the properties and levels contained in the source dimension are copied.
cloneMajorChildren This option does not apply to dimension objects.

Example

'Assume an object (dsoDB) of ClassType clsDatabase exists

Dim dsoDimA As DSO.Dimension

Set dsoDimA = dsoDB.Dimensions.AddNew("DimA")

...

'Create target dimension and clone

Dim dsoDimB = DSO.Dimension

Set dsoDimB = dsoDB.Dimensions.AddNew("DimB")

dsoDimA.Clone(dsoDimB)

See Also
About Decision Support Objects Using Decision Support Objects
Methods Cross-Reference  

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.