FindLowestMLevel

Declaration: TDataTable.FindLowestMLevel (FirstCol, LastCol: longint): TMScaleType;
The function FindLowestMLevel returns the lowest level of measurement which is specified for the columns FirstCol to LastCol. Using this method in combination with FindHighestMLevel 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));
...


Last Update: 2020-Feb-09