The CommandType property of the Command interface contains an enumeration constant indentifying the command option.
clsCubeCommand | clsDatabaseCommand |
CommandTypes (an enumeration)
Each CommandType has an internally-assigned integer that is set to one of the following values.
CommandType | Description |
---|---|
cmdCreateMember | Used to define one or more calculated members. |
cmdCreateSet | Used to define one or more sets of existing members. |
cmdUseLibrary | Used to specify third-party DLLs containing functions to be registered for use in multidimensional expressions (MDX). For more information, see OrdinalPosition. |
cmdUnknown | Used to define statements not included in any of the above command types, such as DROP MEMBER statements or new statements that may be added to future versions. |
Read/write
For a complete list of command types, see Enumerations.
Use the following code to specify a command type for an existing command object:
CommandObject.CommandType = cmdCreateMember
Use the following code to determine which command type has been returned:
Dim CommandType As CommandTypes
CommandType = CommandObject.CommandType
Select Case CommandType
Case cmdCreateMember
' Code to define calculated members
Case cmsCreateSet
' Code to define sets of existing members
Case cmdUseLibrary
' Code to use a third party library
Case cmdUnknown
' Code to define other statements
End Select
About Decision Support Objects | Using Decision Support Objects |
Properties Cross-Reference |