在Delphi的FastCube 2组件上,AddFieldTo的类比是什么?

时间:2014-05-15 09:10:31

标签: delphi migration

对于Delphi的AddFieldTo组件,FastCube 2是什么类似的?我们之前使用过以下代码:

TfcxSlice.AddFieldTo(FieldName, Caption, rf_CapXAx);

问题是由新的TfcxCommonFieldsOfRegion类引起的:

private
  procedure Delete(AIndex: TfcxSmallCount);
  function Add(AField: TfcxCommonFieldOfRegion): TfcxSmallCount;
  procedure Insert(AField: TfcxCommonFieldOfRegion; AIndex: TfcxSmallCount);

因此,没有严格的方法来更改TfcxCommonFieldsOfRegion对象。

1 个答案:

答案 0 :(得分:1)

新代码:

XAxisContainer.AddDimension(TfcxSliceField, FieldName, Caption);