RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
FMTBcd.BcdCompare Function

Compares two TBcd values.

Pascal
function BcdCompare(const bcd1: TBcd; const bcd2: TBcd): Integer;
C++
int BcdCompare(const TBcd bcd1, const TBcd bcd2);

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  

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!