Unit 'fgl' Package
[Overview][Constants][Types][Classes][Index] [#rtl]

TFPSListCompareFunc

Compare list items callback signature.

Declaration

Source position: fgl.pp line 45

type TFPSListCompareFunc = function(

  Key1: Pointer;

  Key2: Pointer

):Integer of object;

Arguments

Key1

  

First key value.

Key2

  

Second key value.

Function result

Is key1 less than key2.

Description

TFPSListCompareFunc is used in the TFPSList.Sort method to compare 2 elements. The list passes 2 pointers to the actual items to the compare function. The result of this function determines how the pointers will be sorted:

See also

TFPSList.Sort

  

Sort the list.


Documentation generated on: Nov 24 2024