The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....


Class: TDataTable
Declaration: function 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:
  AllCategorial : boolean;

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

Last Update: 2020-Aug-23