FieldCount: Integer;
The FieldCount property returns the number of fields in the data source.
To get field name, use the IDmField.Name property.
The property use is given in the example for IDmClusteringDetails.CategoriesCount.
See also:
IDmDataSource