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



SortOrder


Unit:SDL_dstruct
Class:TStringArray
Declaration:property SortOrder[ix: longint]: longint;

The array property SortOrder returns the index of the original row at the position ix. Both the property value and the index ix may take values between 1 and NrOfRows. Please note that changing the sort order programmatically results in inaccessible strings if the SortOrder array contains a row number more than once. In general, setting the sort order should be avoided unless for very special circumstances.

Example: If SortOrder[12] returns 134, this means that the original row 134 is now at position 12 in the string array.


Last Update: 2012-Oct-20