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: property ElemNominal[ACol, ARow: longint]: TNominalIDStr;

The array property ElemNominal provides access to nominal values in the data matrix. The parameters ACol and ARow specify the number of the column and row to be read or written. On reading, the property will return an empty string if either the parameters are outside their valid ranges, or if a numeric (non-categorical) cell is accessed.

On writing to ElemNominal the identifier will be automatically resolved and the corresponding ordinal number will be stored in the data matrix. If the identifier is not yet defined, a new nominal value will be created. If the number of different nominal values exceeds DT_MaxNominalIDs an exception will be raised.

Hint: You can access the same data cell using the property Elem. In the case of a categorical variable, all assigments will be treated as ordinal numbers.

Last Update: 2019-Feb-11