次の方法で共有


FormatString (Measure Interface)

注意

  この機能は、Microsoft SQL Server の次のバージョンで削除されます。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションはできるだけ早く修正してください。

The FormatString property of the Measure interface contains the format used to display the measure values. Any format string valid for use with Microsoft® Visual Basic® is acceptable.

Applies To:clsAggregationMeasure, clsCubeMeasure, clsPartitionMeasure

Data Type

String

Access

Access depends on the value of the ClassType property of the object.

Class type

Access

clsAggregationMeasure

R

clsCubeMeasure

R/W*

clsPartitionMeasure

R

* Read-only for virtual cube measures.

使用例

Use the following code to set the format string for the measure object [Sales_Facts].[Price]:

'Assume an object (dsoCubeMea) of ClassType clsCubeMeasure exists
dsoCubeMea.FormatString = "#,###.##"

関連項目

参照