|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....|
|Home BasePack SDLBase Type Declarations TSortExchgEvent|
|See also: OnSortExchange, OnSortExchange, SortCols, SortRows, SortElems|
An event of type TSortExchgEvent is generated when two columns or rows are exchanged during a sorting process. This event can be used to synchronize the sorting of matrix or vector elements with external data structures.
The ExchgWhat parameter specifies whether vector elements ( = 0), matrix columns ( = 1) or matrix rows ( = 2) are exchanged. The parameters index1 and index2 define the indices of the columns (or rows) to be exchanged. The parameters first and last specify the range of rows (or columns) to be affected by the exchange operation.