Statement

The Statement property of the Command interface contains the text of the command statement.

Applies To
clsCubeCommand clsDatabaseCommand

Data Type

String

Access

Read/write

Remarks

For more information about types of command statements, see CommandType.

Examples

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.

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

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