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



OrdinalOfNominalID


Unit:SDL_datatable
Class: TDataTable
Declaration: function OrdinalOfNominalID (Col: longint; ID: TNominalIDStr; IgnoreCase: boolean): integer;

The function OrdinalOfNominalID returns the ordinal number of the nominal identifier ID for the column Col. The parameter IgnoreCase controls whether the search for the nominal identifier is case sensitive. In general, this parameter should be set to FALSE. If the ID does not exist, or the Col parameter is outside the valid range (1 to NrOfColumns) the function returns a value of -1. A valid ordinal must be in the range from 0 to DT_MaxNominalIDs.

Hint: Please note that the same identifier may return different ordinal values for different columns.



Last Update: 2023-Dec-14