JVCL Help:TJvCustomInspectorRegItem.CompareTo

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Compares the item to another


Pascal

 functionCompareTo(constADataObj: TJvCustomInspectorData; constItem: TJvCustomInspectorRegItem): Integer; virtual;


Parameters

Parameters Description
const ADataObj: TJvCustomInspectorData Data layer instance use for comparison
const Item: TJvCustomInspectorRegItem Registration item to compare to


Return Value

If the specified Item is a better match than this item, the negated match percentage of that item is returned, otherwise the match percentage of this item is returned.


Description

CompareTo compares the item to the specified item. The registration item uses two compare methods, Compare and CompareTo, which work in a similar way as Assign and AssignTo: if Compare doesn't know how to compare the two items, It swaps the items and calls CompareTo.
The CompareTo method in TJvCustomInspectorRegItem will return the match percentage of the one that matched highest.


See Also

TJvCustomInspectorRegItem.Compare


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page