JVCL Help:TJvInspectorRegister.Compare

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

Search in JVCL Help

 
Search in all projects
 

Summary

Compares two registration items.


Pascal

 functionCompare(constADataObj: TJvCustomInspectorData; constItem1: TJvCustomInspectorRegItem; constItem2: TJvCustomInspectorRegItem): Integer;


Parameters

Parameters Description
const ADataObj: TJvCustomInspectorData Data layer instance use for comparison
const Item1: TJvCustomInspectorRegItem First item to be compared.
const Item2: TJvCustomInspectorRegItem Second item to be be compared.


Description

Compare compares two registration items using a data instance to obtain a match value. If Item1 is a better match, Item1 match value will be returned (always positive), otherwise Item2 match value will be returned as a negative value. In other words: A positive result: Item1 is the winner, a negative result: Item2 is the winner.


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