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.
object.Clone(TargetObject [, CloneOptions])
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. |
'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)
About Decision Support Objects | Using Decision Support Objects |
Methods Cross-Reference |