Please enable JavaScript to view this site.

KOL/MCK - User Guide

procedure SortData( const Data: Pointer; const uNElem: Dword; const CompareFun: TCompareEvent; const SwapProc: TSwapEvent );

Call it to sort any array of data of any kind, passing total number of items in an array and two defined (regular) function and procedure to perform custom compare and swap operations. First procedure parameter is to pass it to callback function CompareFun and procedure SwapProc. Items are enumerated from 0 to uNElem-1.

 

procedure SortArray( const Data: Pointer; const uNElem: Dword; const CompareFun: TCompareArrayEvent );

Like SortData, but faster and allows to sort only contigous arrays of dwords (or integers or pointers occupying for 4 bytes for each item.

 

procedure SwapListItems( const L: Pointer; const e1, e2: DWORD );

Use this function as the last parameter for SortData call when a PList object is sorting. SwapListItems just exchanges two items of the list.

 

procedure SortIntegerArray( var A: array of Integer );

procedure to sort array of integers.

 

procedure SortDwordArray( var A: array of DWORD );

Procedure to sort array of unsigned 32-bit integers.

 

KOL / MCK User Guide - Created by Carl Peeraer - Diamant Soft, based on the work of Vladimir Kladov - Artwerp.be

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Nav Header: ALT+n
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Exit Menu/Up: ESC