| Unit: |
SDL_datatable |
| Class: |
TDataTable |
| Declaration: |
[1] function IsConstantColumn (ColIx: longint): boolean;
[2] function IsConstantColumn (ColIx: longint; var ConstVal: double): boolean;
|
The function IsConstantColumn returns TRUE if all values in the column ColIx are the same. The overloaded version [2] additionally returns the found constant value in the variable parameter ConstVal (please note that ConstVal is undefined if the function returns a FALSE value.
| Hint: |
The comparison of the values is based on the comparison of floating point numbers, thus rounding effects have to be taken into consideration. |
|