OrdinalPosition

The OrdinalPosition property of the Dimension interface contains the ordinal position of the dimension object within its parent object’s Dimensions collection.


Note The ordinal position is zero for all dimension objects in the collection of dimensions for a database. The position of a dimension within the collection is significant only when it is used in a cube, partition, or aggregation.


The OrdinalPosition property for dimensions is different from the OrdinalPosition property for levels. Dimensions are ordered by the time sequence in which you add them to their parent object. The ordinal position of levels, on the other hand, determines the hierarchy of the dimension.

Applies To
clsAggregationDimension clsDatabaseDimension
clsCubeDimension clsPartitionDimension

Data Type

Integer

Access

Read-only

Example

'Assume an object (dsoDim) of ClassType clsDimension exits

If dsoDim.OrdinalPosition = 1 Then

    'Code to handle first dimension

Else

    'Code to handle other dimensions

End If

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

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