FindHighestMLevel

Declaration: TDataTable.FindHighestMLevel (FirstCol, LastCol: longint): TMScaleType;
The function FindHighestMLevel returns the highest level of measurement which is specified for the columns FirstCol to LastCol. Using this method in combination with FindLowestMLevel you can, for example, check whether all columns show the same level of measurement.

Hint: Setting both FirstCol and LastCol to zero values forces the method to search through all columns.

Example: The following code snippet sets the variable AllCategorial to TRUE if all columns of the data table are of either nominal or ordinal type:
...
var
  AllCategorial : boolean;

...
AllCategorial := (ord(FindLowestMLevel(0,0)) >= ord(stNominal)) and
                 (ord(FindHighestMLevel(0,0)) <= ord(stOrdinal));
...