Data.FmtBcd.BcdCompare
Delphi
function BcdCompare(const bcd1, bcd2: TBcd): Integer;
C++
extern DELPHI_PACKAGE int __fastcall BcdCompare(const TBcd &bcd1, const TBcd &bcd2);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
| function | public | Data.FmtBcd.pas Data.FMTBcd.hpp |
Data.FmtBcd | Data.FmtBcd |
Description
Compares two TBcd values.
Call BcdCompare to compare two TBcd values. The return value is indicated in the following table:
| Return value | Condition |
|---|---|
|
-1 |
bcd1< bcd2 |
|
0 |
bcd1= bcd2 |
|
1 |
bcd1 > bcd2 |