[Overview][Classes][Procedures and functions][Index] Reference for unit 'LazMethodList' (#lazutils)

CompareMethods (deprecated)

Determines whether the specified method instances contain the same code and data.

Declaration

Source position: lazmethodlist.pas line 68

function CompareMethods(

  const m1: TMethod;

  const m2: TMethod

):Boolean;

Arguments

m1

  

Method for the comparison.

m2

  

Another method for the comparison.

Function result

True when the compared methods share the same code and data.

Description

CompareMethods is a Boolean function used to compare the specified methods. m1 and m2 are TMethod parameters with the values compared in the function. The comparison examines the Code and Data members in the TMethod records. The return value is True when the Code and Data members are identical in both records.

Remark: CompareMethods has been deprecated in LCL version 2.3, and will be removed in version 2.5. Use the SameMethod routine instead.

Version info

Deprecated in LCL version 2.3. Use the SameMethod routine instead.

See also

SameMethod

  

Determines whether the specified method instances contain the same code and data.

TMethod

TMethodList.IndexOf

  

Gets the position where the specified method is stored in the list.


Version 4.0 Generated 2025-05-03 Home