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....



FindHighestMLevel


Unit:SDL_datatable
Class: TDataTable
Declaration: function 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));
...



Last Update: 2020-Aug-23