Data.DBXCommon.TDBXBcdValue.Compare

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
Data.DBXCommon.pas
Data.DBXCommon.hpp
Unit: Data.DBXCommon
Parent: TDBXBcdValue

Delphi

function Compare(Other: TDBXValue): Smallint; override;

C++

virtual short __fastcall Compare(TDBXValue* Other);

Description

Compares the TDBXValue with another TDBXValue given by the parameter.

Data.DBXCommon.TDBXBcdValue.Compare inherits from Data.DBXCommon.TDBXValue.Compare. All content below this line refers to Data.DBXCommon.TDBXValue.Compare.

Compares the TDBXValue with another TDBXValue given by the parameter.


Compare compares the current TDBXValue with the Other parameter. Compare returns -1 if the current TDBXValue is smaller than Other, 1 if the current TDBXValue is greater than Other, and 0 if they are equal.

Compare is a virtual method. All derived members have the same functionality implemented depending on the type of TDBXValue.

See Also