TDBClassifier.InitializeAttributes Method

procedure InitializeAttributes;

Uses the field definitions of the dataset and fields defined with Attributes property to set the AttributeKind and AttributeIndex properties.

Result: stored in self (calling object)

Remarks:

This information is used to set the attribute count of the classifier connected to the Classifier property. The method uses the dataset only, if AttributeKind of any of the attributes is akAuto. In this case, the AttributeKind will be determined with the help of the DataType property. AttributeKind will be changed from akAuto to akDiscrete or akFloat or akDiscreteIndexed on the first call to this method.