Data.DBXCommon.TDBXDateValue.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: TDBXDateValue

Delphi

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

C++

virtual short __fastcall Compare(TDBXValue* Other);

Description

Compares the TDBXDateValue with another TDBXDateValue given by a parameter.


Compare compares the current TDBXDateValue to the Other parameter. Compare returns -1 if the current TDBXDateValue is before Other, 1 if the current TDBXDateValue is after Other, and 0 if they are the same date.

See Also