The Statement property of the Command interface contains the text of the command statement.
clsCubeCommand | clsDatabaseCommand |
String
Read/write
For more information about types of command statements, see CommandType.
Use the following code to create a cmdCreateMember Command object:
CommandObject.Statement = "CREATE MEMBER MyCube.Measures.PROFIT AS 'Measures.Sales-Measures.Cost'"
Use the following code to create a cmdCreateSet Command object:
CommandObject.Statement = "CREATE SET MyCube.WestCoast AS '{Washington, Oregon, California}'"
Use the following code to create a cmdUseLibrary Command object:
CommandObject.Statement = "Use Library ""MyStatFunctions.dll"""
Use the following code to return a Command object statement:
Dim CommandStatement As String
CommandStatement = CommandObject.Statement
For more information about the CREATE MEMBER statements, see CREATE MEMBER and CREATE SET. For information about multidimensional expressions (MDX), see Function List and MDX.
About Decision Support Objects | Using Decision Support Objects |
Properties Cross-Reference |